It still makes sense. If heat is produced by a burning something, it is is more efficient to do that in one dedicated place. It makes it easier to pipe exhaust away from apartments and efficiency can be higher.
Also gas pipes to every home isn't a thing in many countries.