Those a little bit older who started during or right after the dot bomb fiasco knew (or should have known) that software might pay well or "is fun/interesting" but have a plan to get out by 40.
I discussed this with same age or older colleagues and tried to impress upon younger colleagues the importance of saving and investing and lifestyle inflation etc.
If you started in 2005 or later you could be forgiven for think you'd found the golden ticket and 6 future salaries, bonuses and stock were never going to end just bc you could npm a bunch of js together.