If electric water heater, usually bottom element going bad. Thermostat might be set too high or is going bad.
Either the thermostat has been set too low, your hot water heater is not big enough, or your hot water heater has not been installed properly.
The water heater temperature is set too low.
either your hot water heater has been installed incorrectly or the thermostat has been set too low Sorry to butt in BUT there is NO THERMOSTAT on a hot water heater there is a AQUASTAT and sometimes the heater short cycles just to maintain the SET temperature
Because the water heater is turned up too high.
Is there a leak behind the wall? Does your hot water system have a re-circulation system in it? Is the shower very close to the hot water heater? All could be factors that keep the handle and water warm.
Your husband/wife might have changed the temperature. You water heater might be getting too old.
I think the only reasonable answer can be that the cold and hot water inlet/outlets are reversed. your hot water line is attached, at the heater to the cold water inlet or your hot water outlet is too short inside of the tank
Many homeowners do not realize that they can adjust the heat settings on their home's water heater. Although you can set your water heater to heat water until it is very hot, it is a good idea to keep your water heater's settings turned down to a lower temperature. Heating your water to a very hot temperature wastes energy. Additionally, if the water in your shower or sink is too hot, it could scald members of your household. Keep your water heater adjusted so that it does not cause burns or waste energy.
Assuming you are talking about a home water heater, there is a pressure relief valve above the hot water line - usually on a tee or an ell above where the hot water line comes out of the heater and usually leads to the floor and under the house. The valve is designed to relieve the pressure in the water heater when the water becomes too hot. The valve may have corroded and is stuck in the open position thereby releasing the hot water. You can feel the pipe that connects to the valve = if it is hot, it is leaking water; if it is cold, the problem lies elsewhere - maybe the thermostat could be set too low.
According to DIY on Hot Water Promblems if theres not enough water then you hit the reset button. If the water is too hot then change the temperature and reset. If you have a leaky heater then you need to replace the valve. If you have a rusty tank then you need to replace the water heater. If you have a noisy heater then you need to drain and flush the tank. If you have dirty water then drain and flush the tank and do it on a regular basis.
Put the heater on a timer, so it only works half time or so.
The hot water pipe feeding the two is too small, either by build up inside the pipe (very common with steel lines), or because it was too small to begin with. Or a shutoff valve is partially closed (maybe at the hot water heater?)