Comment by prmph
But your work may contribute to a product that helps a doctor, nurse or teacher do their job.
Even if it does not directly do that, maybe your fellow workers use the income they get from the company existence to raise their kid who becomes a doctor, nurse, etc.
This does not solve the problem that people are compensated based on the ability to create profit and the trendiness of the industry, not on usefulness. If I allow a kid of someone in my company to go to med school and then they drop out of being a doctor because the pay sucks and become yet another financier/dev/consultant/middle manager/entrepreneur of fairly useless business, then the system still failed.