First, a gas-fired power plant converts about 40% of thermal energy to electricity, discarding 60% to further heat the planet. Then a few more percent are lost in transmission lines and voltage-lowering transformers. Only then that electricity is used to heat water or air in one's house.
If you just directly burn that same gas in the house to produce heat, it's nearly 3x as efficient.