Heat pumps work like a reverse refrigerator by using the differential between the ambient air temperature and the refrigerant in the heat pump, which is at low temperatures. When this heat is absorbed into the refrigerant it evaporates and becomes a gas which is then compressed to superheat it and this high temperature is transferred to the water via a heat exchanger.