I don't know about SF, but many localities limit the ratio of occupants/bedrooms. A family of four might not (legally) be able to rent a 1-bedroom apartment even if they were willing to live in one.
There's the really problem: 2 underemployed adults producing 3 or 5 underemployed-to-be children, while resourcr-ful adults shower their resources on 1 or 2 children.