How
Any object that is hotter than its surroudings will transfer energy to the surroundings. So, if you have a pipe carrying hot water from one place to another (e.g. from a hot water tank or boiler to your taps) some of the heat energy the water contains will be lost.