From FHA to single-family home zoning, there are many laws that specifically encouraged sprawl into what were, at the time, rural areas. That became the suburbs.
https://www.khanacademy.org/humanities/us-history/postwarera...
I've lived in both "sardines in a can" and "sardines scattered all around the room" (less dense) levels of density for significant portions of my life, and I've experienced firsthand the many benefits and downsides of each. I imagine you have, too.
One thing I've only recently learned is suburbs are subsidized by the people living in the denser areas that you seem to strongly dislike.
This video gets into the math behind why that is: https://www.youtube.com/watch?v=7Nw6qyyrTeI