The conversion to all-electric homes is more recent, and hasn't even started in some places. Here in Canada, some jurisdictions require newly constructed houses and apartments to have electric heat and cooling (heat pump, with resistive heat as a backup), an electric dryer and stove, and an electric water heater (tank or tankless). Others jurisdictions are still using gas furnaces and gas-fired hot water tanks.

All electric homes existed as far back as the 1960s. Gas heat was generally cheaper back then (heat pump? nobody has air conditioning then) so they were not common where it got cold. Even at that though, the difference in labor for an all electric house today vs the same house with gas appliances is minimal - you get larger wires to the stove, furnace and dryer, everything else is the same. (in the near future I expect to see wires for the EV as well, but not yet and in any case this is the same even if your other appliances are gas)

I live in one of those all electric homes too, made in the 2000s. Doesn't change that a bust will dry up the work and homeowners won't fork over the money for something that has few benefits for their daily life and requires expensive changes to the house.

To add to this there are jurisdictions that will require you to still pay a small monthly fee to support the gas pipes if you cut off gas service.

It is really nice not having a gas bill and not requiring maintenance for gas appliances, but most people won't care if they lived with it for long enough.

The only case I see it working is in a disaster area or blighted areas where the builder decided to bulldoze and rebuild the houses. The southern California fires for example; the city gave priority to permits to houses that went all electric since the gas pipes were destroyed. Permitting and inspection is so much simpler with all electric.