This was the result from a small leak in an electric water heater that was beyond its lifetime.
The lifetime of an electric water heater is 10-15 years. So, you might want to consider replacement.
When away, make sure that your water is turned off and the hot water breaker is also turned off.