The ignition source must be 18 inches above the floor. When you read the definition for ignition source it becomes clear that the contacts in the electric water heater are a source of ignition.
Per IRC R202
For my home installation, I needed to raise the unit about 8 inches to get the ignition source above 18 inches.
For gas appliances
Water heater specific, regardless of fuel