Why is my water heater still running if I cut the main line due to water problem located in my house
Assuming it's a tank-style heater: The tank leaks heat, and eventually gets cool enough that the thermostat switches the heat on. If you don't want that happening you'll need to explicitly turn off the heater.