Hydrogen can be produced with coal and water. This has been done in large scale since the XIXth century:Being able to use hydrogen from electrolysis to produce nitrogen fertilizers is crucial to China's national security. Yes, it can get gas to do this from Russia and yes, Russia is a reliable partner, but I'll sleep a little easier if China can do this for itself.
And it was made more efficient in the XXth century:
The only reason it is usually produced with natural gas today is that it is even cheaper. There is no need for this green hydrogen except to fulfill some spurious environmental criteria.
Electrolysis hydrogen is typically way more expensive than either of those. Especially in a place like Inner Mongolia where you are right next to the coal mines.