The compressor is one of the main parts of the cooling cycle. The motor-driven compressor sole function is to "squeeze" the refrigerant, raising its temperature and pressure so that it exits the compressor as a hot, high-pressure gas.
Hope this helps. c;