If you can take natural gas out of the ground, split it into hydrogen and CO2 (releasing heat, which can be used to generate electricity), and inject the CO2 back underground to help release more oil and gas.
At this point, you have hydrogen gas.
Sure, you could burn that hydrogen to make more electricity, but it works out financially better if you can directly use it.
The benefit of this approach is it can make use of most of the existing oil and gas infrastructure, and countries sitting on big gas reserves have a use for them.
The downside is it makes minimal sense unless there is some financial disincentive from just burning the gas and releasing the CO2.