It takes 50% more energy to generate hydrogen than to just use electricity itself. It takes million dollar facilities to generate that hydrogen and turn it into electricity.
Then, it has to be stored at a very high pressure in your car, which has a number of risks. Then, if you have an accident and it doesn't completely blow you up, there can be a fire, in which case you are now on fire but people just think you are a crazy person running around because hydrogen has an invisible flame.
Or, you just use electricity.