Because, rightly or wrongly, people are still willing to work and pick up the slack for the same shitty wages.
If they weren’t, and every teacher quit or went into other professions because the money wasn’t good enough, the wages would go up.
Healthcare is different