https://www.greenbuildingadvisor.com/article/bedrooms-withou...
https://www.greenbuildingadvisor.com/article/bedrooms-withou...
There's been a whole discussion of the code though as modern mid/high rises have - concrete, "fireproof" (in terms of adjacent unit to unit) construction - sprinkler systems - internal hallway leading to 2 stairways
All of which are lacking in wood frame homes which make up a higher amount of home fire deaths. So there has been an argument that you could build housing much cheaper if you could rely on the concrete & sprinklers, and could lighten the rules around multiple stairs / windows / etc.
An interesting debate, with of course, tradeoffs.
Bedrooms have egress requirements
Apartments have window requirements (eg natural light)
Windows can be unopenable etc.,
It's literally because of hi rises and the issues with it being pointless to jump from 10+ stories (you'll also suffer less, as the smoke will make you pass out long before you're actually being burned).