I personally left science because I could see it had 98% overlap with what I'd do as an engineer (or entrepreneur, in the case of a PI), with a tiny fraction of the monetary benefit. Being a winner in that system is a great life, but it rests upon a huge pyramid of people who are working their butts off at low pay and lower prestige, for a brass ring that few will ever grasp.
I am a PI.
What I spent my day doing was dealing with managerial tasks, fiddly stuff for funding applications, etc.
I got to actually code for a whole day last week, and it was marvelous. It was also only possible because it was an all-hands-on-deck, everything else can wait situation.
I said exactly the same thing when I first left academia for tech, and people would look at me suspiciously and ask why I'd ever do such a thing. I looked at every PI I knew, and saw a task essentially identical to running a startup, but with no financial upside -- and the downside risk of being jobless and adrift if you don't get tenure.
To some extent it depends on the weakness of humans for status and competition, because they are powerful motivators to drive advances.