...and engineering departments. I don't see any reason to suspect a sizable effect difference between the engineering industries and the academic environment which matriculates them.
The social dynamics in academia and industry are very different. And even the nature of the work is different - there are very different expectations about software quality, repeatability, etc. for even a CS researcher and a software engineer in industry, let alone for engineers in other fields. (Some amount of software engineering practice has been creeping into CS academia from shared points of contact, like open-source projects or students taking industry internships, but there's still quite a gap.) You're essentially not rewarded for your operational excellence at all in academia. You're not expected to have writing as a primary skill in industry. And so forth. Even if we ignored social dynamics, the day-to-day work is very different and attracts different people to start with. And the means of recognition and reward are also very different.
I would expect a limited effect difference if I believed that the primary reason people stay in/leave a field is because of their inherent aptitude towards the fundamental nature of the work - but I don't believe that.