Not every developer gets to work on Sora, Quantum AI chip, or CUDA source code.
For the very vast majority, it is facing stupid PMs, MBA bosses, daily standups, and getting fired with no fault of your own. There are good sides, too, of course. But you have to live through these.
Do you choose these or getting VIP treatment in society with tenured jobs and after MD + 10 YoE, you can say fu to any boss and open your own clinic, and economically be forever in the 0.1%?
And honestly, outside the US, many of the positive sides of being an SWE disappear completely (like crazy compensations, having too many options, etc.).
Programming is crazy cool, but the profession of Software Engineering is not always that cool.