Water is right there, but the hydrogen is
really closely bound to the oxygen, and extremely hard to get out.
It's considerably easier to get H2 out of methane. Unfortunately, that process also yields CO2, so it's not helping the greenhouse gas situation.
Hydrogen proponents suggest a route where we start with "blue hydrogen" from natural gas. Then, when we've got a good H2 infrastructure going and a lot of excess electricity from solar, we can switch over to "green hydrogen" from water.
Skeptics point out that this is incredibly stupid, and that "hydrogen proponents" tend to be closely in bed with the fossil fuel industry. It looks an awful lot like an excuse to delay the elimination of fossil-fuel replacements like wind and solar.