Using energy to produce things generates waste heat, very useful for warming a house but little else. Heating costs can be reduced by first using the energy to make something useful. For natural gas, it can be burned in a turbine to generate electricity. For copious amounts of electric heat, install a 3D metal printer and manufacture something. Just burning limited energy resources for heat is like burning money, is bad for the environment and economy.
In the old days mainframes used to heat office buildings locally.
Wood however heats wonderfully and is great for the environment.