Germany's gas problem wasn't purely about energy, but the availability of feedstock to produce chemicals.
Natural gas, being 90% methane, is a valuable source of hydrogen.