Being cheap is a big part of it.
But also, gas is a superior cooking medium to any but the most high quality electric cooktops. Gas is instantly responsive, whereas induction heating elements take time to cool off and heat up.
When I was younger living in apartments, I had some really shitty electric stoves. Terrible consistency, hotspots, took forever to heat up and stayed hot for ages.