That switch will likely activate an electric heater element when the boat is connected to shorepower. When underway and the engine is running, heat from the engine is transferred to water in the heater tank. The electric element and the heat exchanger can operate independently from one another or together if you run the engine while at the dock.