... are regulations which set minimum standards for housing (such as how many people can legally live in a 400 sq foot aparment , for example)
I don't know the regulations, but my guess would be there needs to be a certain amount of empty floor space, and some rooms aren't quite big enough for the extra bed so the pull-out is the legal alternative.