In addition to what other people are saying, there's also district heating: https://en.wikipedia.org/wiki/District_heating Heat can be generated efficiently in some centralized location (from geothermal heat, power plant waste heat, solar, or whatever) and then distributed to nearby homes.
There's lots of ways to heat homes in ways which use way less than 1 joule of electricity for 1 joule of heat.
There's lots of ways to heat homes in ways which use way less than 1 joule of electricity for 1 joule of heat.