Excessive battery charging causes electrolysis, emitting hydrogen and oxygen. This process is known as "gassing".