That’s true, but it is difficult to do in the USA since the company town concept/complex fell out of style in this country after WW2. People don’t generally live where they work, especially if they bought 10 years ago and switched jobs twice since then (and that isn’t even counting second body problems). Transit is really needed to fill in the gaps, or perhaps renting should be encouraged so people more easily move when they change jobs (but the second body problem remains).
WFH works also, but then you don’t need to be near where your jobs is.