Energy density is another big factor. Hydrogen has a much higher energy density especially for automobile use compared to batteries.
Couple this with the fact hydrogen distribution and storage have some significant problems, plus recharging at home/work/parking is super convenient.
The only real thing stopping battery powered electric cars from being the obvious first choice in many markets is the cost of battery packs. Conveniently this has progressively improved yer-on-year. It is simply a matter of time.