Hydrogen is extraordinarily annoying to store and transport. Oil is kind of annoying, but not “heavy cans of pressurized gas that leaks through metal walls anyway and is explosive in a wide range of air concentrations” annoying. Nobody has figured out a workable way to deal with this, though they might at some point.
It’s also not an accident electric cars are so heavy—gasoline or diesel fuel are fantastically energy-dense compared to almost anything else you might want to use, even accounting for the intricate engine you need to haul around to take advantage of them. Not to say that you shouldn’t try and use something else, just that it’s a very real problem.
You could, the technology exists. The reason hydrogen fuel cells never caught on is because the production of hydrogen doesn't make economic and environmental sense. Which gets back to the root of problem with the OP claims.