That's not obvious at all. At the time that the UK switched to gas, Norway was pushing resistive electrical heating and not heat pumps - and that only worked for them because nearly all of their electricity came from hydroelectric generation. The push for heat pumps is much more recent, with only a few thousand households in Norway having heat pumps as recently as 2005. The UK doesn't have the geography for that kind of large-scale hydroelectric, and there's a huge efficiency and equipment cost to using resistive electric heating rather than burning fossil fuels directly when your electricity has to be generated from fossil fuels. Also, the coal that cheap natural gas largely replaced in the UK was directly killing a bunch of people by causing pretty nasty pollution.
In general, a lot of comparisons with other countries that get published in the British press are like this - they ignore important differences between the UK and those countries or problems and costs associated with what they're doing because the goal is to make it seem like there were easy options that the UK missed out on because our government is evil, not to actually help people understand the world.
In general, a lot of comparisons with other countries that get published in the British press are like this - they ignore important differences between the UK and those countries or problems and costs associated with what they're doing because the goal is to make it seem like there were easy options that the UK missed out on because our government is evil, not to actually help people understand the world.