The electrolysis of water produces hydrogen
The electrolysis of water produces oxygen. As pure as it gets.
Hydrazine and oxygen make for a wonderful propellant to lift fifty tons into orbit around the earth.
Sometimes when a cell goes bad, it shorts. Driving amperage up in remaining cells. This will cause grossly excessive electrolysis in all cells. As electrolyte level decreases to a certain point plates can overheat. An infinitesimal spark can be created between any two plates. The resulting explosion pressure will collapse plates in adjacent cells. More explosions chain-reaction style. Permutations of this scenario are many.
Inferior quality batteries stand a much greater chance of premature death. Incorrect charging and maintenance protocols may also cause excessive hydrolysis. One battery detonating in a bank where other batteries electrolyte levels remain normal is an absolute finding of an already failed battery. It was dead before it exploded. Only a BCI CCA test verifies catastrophic loss of capacity. Which is a thoroughly moot exercise.