The condenser is needed to cool down the refrigerant that has become heated during compression in the compressor. The hot refrigerant gas flows into the condenser, discharging heat to the surroundings via the pipe and fins. Cooling reduces the refrigerant state of aggregation from gaseous to fluid.
The hot refrigerant gas flows into the top of the condenser, discharging heat to the surroundings via the pipe and fins.
Cooling causes the refrigerant to exit the condenser (at the lower connection) in a fluid state.