Why is water hotter in kitchen and not in shower?

The kitchen is probably closest to the water heater and the shower is the farthest. Water cools down the farther it travels through the pipes.