The swimming pool heat pump works in different ways.
The liquid circulates in the refrigeration coil. In some cases, it will evaporate through a small hole, which is a process of absorbing heat from the surrounding air.
It continues to the heat exchanger and returns to the liquid. This will heat it more and transfer the heat to the pool water.