The secret is don't spend all of the money you make. Well it's not a secret, but it's also not "normal." It's culturally normal to spend all of your money, and then wonder why you can't build up savings. But if you're a software engineer with an income of 6 figures, you really should be able to figure out how to live a good life without spending every last dollar.
That's why I'm not getting caught up in the particulars of this example.
Anyone working in in a government position, or for a state university, or for a nonprofit is probably not earning $100k except maybe in high COL areas or those with quite senior positions.
Think about people earning $50k - $100k. 37 million households in the US. Another 34 million households earn less. 128 million households in America total.[1]
12, give or take 2, years into professional life, you have the privilege of signing a 30-year note and cashing out all of your savings. Wages and cost of living won't be constant, but that's basically the optimistic case. Working 42 years to retire on one paid off mortgage.
I think owning one basic shelter should be more accessible than that.
[1] https://www.statista.com/statistics/203183/percentage-distri...
In my own life, I spent about 2.5x gross income for both of my home purchases. And they were arguably more home than I needed. When I bought my first house, I was single, and I rented out the two other bedrooms. My spouse and I bought a house together, but ultimately could not have children, so the house is too big. (We also live on an acre and have a lot to maintain.) Now I know these Philly suburbs are nothing compared to California real estate, but it's still a medium to high cost of living area compared to the rest of the country, where we're minutes away from any kind of shopping or entertainment we'd want, and 45 minutes from the large international airport.
For sure the rising housing costs make it even harder for households making less than the median. I never argued otherwise. My point was about that which started this thread, that there is "no option" but to work for a big, awful tech company. I disagree, and elevated housing costs don't change that.
I got a mortgage similar to what OP mentioned but I have a veterans home loan. Most people I know don't have one of those, so their mortgage that was gotten at the same time as mine is closer to $4k/m.