And converting (lossily) the form (usually, unless you’re doing geothermal heat - even then you need a heat exchanger).
And it all boils down to ‘within an enclosed system’. With heat pumps the scope is typically within a hundred meters of itself.
With deep geothermal it’s 1+ mile underground and the surface.
There is useful power between 1+ mile down and the surface. There isn’t 100 meters away and the surface - unless you’re sitting on top of a hot spring anyway.