Your hot water heater has two chambers. One for the fresh water sourced from your water tank and the other is attached to the cooling system of your inboard motor. When at the dock, and plugged into shore power, there is a heating element that sticks into the fresh water half of the water heater which, when the switch is on, heats the water. You NEVER want to empty that water out of the heater and leave the switch on, or that will burn out the element. When you are underway, the engine cooling system (which gets hot) runs through the second chamber in the water heater. The hot water, next to the chamber with the fresh water, heats the fresh water, which is plumbed to the hot side of your faucets, shower, etc. When you are at anchor, and the cooling system of your engine cools, it no longer heats the fresh water side. To heat the fresh water side, you have to start the engine and get it up to operating temperature so that it heats of the fresh water. Or, if your boat has a generator, then you can start that up and the heating element in the water heater will heat up your fresh water. Alternatives are on demand water heaters that are available in electric or propane systems.