The rat race is totally opt-in. If you're getting paid as a software engineer in the USA[1] and you're making market rate for where you live, you can easily save >>50% of your salary and retire in 10 years. And really, what you're buying with those savings are options. If you love what you're doing, no one will force you to quit once you've accumulated FU money. For me personally, even money says I keep on working in my same career with little change. But the point is that it then becomes my decision, not something imposed on me. It changes your perspective (and stress level).
[1]: The US is an unusually good place for software engineers from this perspective: by moving from London back to Seattle I was able to nearly double my market rate while modestly lowering my cost of living. But even in London, it was possible to save a substantial fraction of each paycheck.