The thing is, in the US the "sectioned off area of a bigger room" model of housing has been legislated and regulated out of existence. Similar for the other option the very poor (read: serfs) had in the Russia of the period Crime and Punishment is set in: just build something yourself to the best of your ability. The result was not always great, and there are all sorts of reasons (starting with fire-spreading externalities) for modern building codes, so I'm not suggesting it's necessaily desirable or viable to go back to where we were in the 19th century regarding housing. But the upshot is that building and health codes enforce a minimum quality on housing that surely feels unexceptionable to the people writing them while at the same time serving to price people out of housing.