I believe it actually decomposes the water in the electrolyte, producing both hydrogen and oxygen. That's why it explodes so easily; pure hydrogen will just burn. See electrolysis. -- Randall