Want to be a grad student? 80-90% pay cut. (Unless you go to Switzerland and then it's closer to 70%).
Want to be a university research programmer? 70% pay cut.
Removing economic considerations, would I rather be researching auto-immune disease? Sure. But 'doing good' means compromises like buying a house at 45 instead of 35.
No one asks doctors to make these compromises.
Edit: If someone wants to deposit $2m in my bank account I'll quit my job on Tuesday and go to grad school.