Earlier quoted context omitted.
It's possible to create hydrogen from coal and carbon capture is supposed to be feasible. Though I don't know how commercially viable this is.
Carbon doesn't really contain all that much hydrogen. Feasibility is key. https://www.youtube.com/watch?v=1GSV2kVkO1w
The hydrogen also comes from water reacted (mildly endothermically) with carbon, and by further reaction of carbon monoxide with water.
C + H2O --> CO + H2
CO + H2O --> CO2 + H2