Earlier quoted context omitted.
A 7 figure annual income is setting the affluent definition very high. You can work at Google for a decade and end up a multi-millionaire, with enough money to retire to most places in the US. From your other comment, it seems like you haven't done the analysis on this. Top companies are routinely paying $200k-300k these days. That's enough to save a million dollars over a decade even if you have a family.
$200k-$300k in places like San Francisco and Menlo Park. Clearly, you don't understand how cost of living works. Also, to make that much, you need to be at around a level of SDE3/tech lead, which is by no means easy (a decade of making low six-figures & some political panache). See this top answer on Quora, for a pretty detailed analysis: https://www.quora.com/Will-I-be-able-to-become-a-millionaire... You might be ab…
This is backed up by own personal experience as a developer in NYC (hardly a low cost area). I expect to have a million dollars saved up within a decade and I certainly haven't relied on political panache to get there.