Doing that takes energy, that’s why it is called a heat pump. That moves heat from the water to an already warmer place, against a heat gradient, just as a water pump moves water against a gravity gradient.
If the water were warmer than your typical living space, they wouldn’t need a heat pump; a water pump to pump the water closer to where heat is needed would be sufficient.