It's not as easy to ship electricity around as you might think. Electricity attenuates over distance, and when green sources are far from population centers, that effect is higher. To use electricity, you have to be physically tied to the power grid, or carry batteries. Those are heavy and require a bunch of heavy metals sourced from questionable places.
Hydrogen is more portable and transferable than electricity. It can be used for off-grid purposes, like vehicles and wherever you'd use propane now. And its efficiency compared to electricity doesn't really matter if you're producing it using waste voltage from surplus.
Both have their places. Converting away from fossil fuels isnt going to have a monolithic solution.