That's because it's much easier to build charging stations, most countries already have electricity transmission and distribution grids.
If you want to build hydrogen stations, you also need to build out a transmission and distribution grid/network, from scratch.