Well, we already have engines able to run on ammonia or methanol. So, it's an easy transition. Hydrogen is also seriously used in industrial processing already. Keep in mind that the goal of Chinese hydrogen industry and renewable industry is to get the cost of green H2 production below that of coal produced H2
If you look at the chart on the bottom, it's entirely doable if cost of electricity continues to come down. Also important to note here that China's industrial need for hydrogen will reach close to 40 million ton by 2030. Of which, conversion to ammonia is 28%, methanol is 35%, oil refinery is 27% and steel smelting is 10%. So there is a huge economic reason to raising China's domestic productoin.
But aside from that, the Europeans are getting rid of fertilizers (see the Dutch far riot) because of climate goals. Do you think Europeans are willing to buy ammonia made from coal from China? I don't think so. So in order to sell green fertilizers to EU, you have to produce them using green energy.
There is also energy security benefits from using your own solar/win power to produce these things. It helps scale up your domestic electrolyzer industry. Remember, while green revolution has been touted as a huge industrial benefit in Western countries, it really has only helped China so far.
The table below shows just how much investment Sinopec alone has made into Hydrogen power development. Think about it from the direction of Sinopec. You are trying to become a chemical superpower at a time when EU is getting rid of refineries everywhere. Are Europeans going to be happy importing your products that are made with hydrogen from coal? I don't think so. That's Sinopec is leading the effort in Green H2 development and saying that 60% of its hydrogen needs will be green soon. Promoting yourself as moving away from hydrocarbon is a great marketing scheme for petrochemical companies.