I drove 1800 miles in a Hydrogen Car

So Toyota is using electrolysis to extract energy from hydrogen
but whats wrong with combusting it with oxygen, I mean it also produces H2O in form of steam r8?
is that less efficient or it has harmfull myproducts?
I would love to hear the  reason