At the lower levels it's mostly meeting arbitrary regulatory requirements. You can live in a shack for next to no rent just fine, but the state will steal your kids 'cuz neglect, inferior shelter' and then they'll condemn your shack and dump you on the streets where it's ~illegal to be homeless.