The primary function of a heat rejection system in a chiller is to extract heat from the water used in a cooling system and discharge it to an available cooling medium. This process is essential for the chiller to cool the water effectively. The heat rejection system plays a crucial role in maintaining the overall efficiency and performance of the chiller.