Our current housing crisis is rooted in building housing designed for our standard nuclear family with a breadwinner father, homemaker mother and 2.5 minor kids. This became our standard post-WW2 with the birth of the suburbs and was avidly embraced because it worked to solve our housing crisis at that time.
That was never the majority of the US population but it was a larger percentage of the population than it is currently and there were other housing options available if you were single. We have torn down a million SROs and largely eliminated the practice of boarding houses. Now we see such things as aimed at homeless people who can't make their lives work. At one time, that was normal housing for normal people.
We have a higher percentage of households with one to three people and we mostly don't build housing for such households. This has driven an interest in alternatives like Tiny Homes, RV living and trailer courts.
We really need to focus on building Missing Middle Housing and SROs. That would include duplexes which are a potential sensible option for living with extended family in some cases.
Suburbs got thrown up at breathtaking speed in part because it was greenfield development, which lowered some barriers to development. There is some saying about "Good. Cheap. Fast. Pick two."
At the time that they were carpeting the US at high speed, they were seen as good, cheap and fast. We are now seeing what the myriad hidden costs were, from cutting out lower income people to forcing people to be dependent on cars to cutting out people of color and also having environmental costs that were not factored in at the time.
The birth of the suburb predates the environmental movement.
The birth of the suburb is generally traced to Levittown in the late 1940s-early 1950s. The environmental movement is generally traced to the publication of a book called Silent Spring in 1962.
[0]https://www.khanacademy.org/humanities/us-history/the-gilded...
[1]https://ourworldindata.org/urbanization#share-of-populations...
granted this only goes back to 1960