Gas in European pipeline systems is measured in kWh (not in m³ or kg), because it's the energy in the gas that we're after. Hence the funny unit.
Similarly, we don't need power of the transfer of the gas, we need to know how much gas gets exchanged, because it's priced per kWh, so removing h from each side actually makes things harder in another equation.