Earlier quoted context omitted.
Would they though? I think that's a shallow outlook, the importance of saving lives doesn't lessen once you become wealthy. Everyone has to watch their friends and family get old and sick eventually. Compare that to a lot of technology jobs. I think my friends and family will be fine if the schedule at Netflix slips and they have to wait a few years to watch sitcoms in 8K. (Edit: I don't mean to disparage anyone work…
A doctor gets to see the smiles that are the fruit of his labor. The engineer gets to see some metric move by a tenth of a percent.
A doctor can be fairly certain that a healthy, smiling patient is unequivocally a good thing. A thing to feel proud about.
An engineer is often tasked with moving a metric they don't personally believe to be meaningful, or worth while.
If I'm told that "We're prioritizing new user activation and engagement" and my team's quarterly review will be based on how I move that metric, it's soul sucking to realize that the optimal way to engage new users happens to also be objectively worse for our existing users.
There is no unequivocal "Good" for me to do. I'm not really doing "Good" at all, I'm just making bank for an employer that:
A - Won't return the favor in any meaningful sense.
B - Is of questionable business acumen (Is trading old customers for new customers a viable strategy? Maybe. Maybe not. I don't get to see the discussion and understand the trade-offs that were discussed).
C - Clearly values metrics that correlate to profit over any real pride in their product.
----
Once you dispense with the idea that you're actually helping people with your profession, the only real motivator left is money. Money certainly matters (anyone who says otherwise is lying) but every dollar has a diminishing return on motivation.
If I can pay mortgage/utilities/food and still have enough cash for a night out or a nice drink every now and then, I no longer want more money - I want more fulfilling work.
That might mean making smiles.
That might mean having more control.
That might mean working on a task that judges excellence more objectively than "Making lots of profit".