Since the pump moves the liquid through the pipeline, it cools or heats up in the ground, supplying heat or cold to the surface, and giving it to the environment.