Hydrogen has other uses too. Currently we use gas which results in carbon emissions. But with cheap enough energy, you can get hydrogen from water. There is also an option to not emit the carbon when using gas, but you get less hydrogen for the same input so no one is going to do that at scale.
Another major use for hydrogen is the haber-bosch process.