That’s entirely the point of hydrogen fuel. The process of producing or using hydrogen does not pollute. You have decoupled pollution from energy storage.
Hydrocarbons pollute by their very nature. In order to have a carbon neutral hydrocarbon cycle you need an impractical number of CO2 capture facilities.
And to add to your comment, spelling it out in case it isn't obvious: you can also decouple pollution from energy production using photovoltaics, wind or hydro - and suddenly most of your power chain is clean (what remains dirty is manufacturing the power generator and power storage).
Hydrocarbons pollute by their very nature. In order to have a carbon neutral hydrocarbon cycle you need an impractical number of CO2 capture facilities.