These are all jobs where people sign up for the job. Whether it’s altruism or genuine passion. They’re willing to compromise and put up with less pay and harder working conditions.
But because they’re willing to compromise, these people are pushed to their limit. With not only low pay and shit conditions, but higher-ups which actively exploit their altruism and passion. “If you don’t work, patients / children are going to suffer!” coming from the same beaurocracy which created the situation where a) they suffer or b) you work extra hours.
They’re being pushed past the limit in fact, which is why there’s now a nursing and teaching shortage despite these actually being popular fields. A lot of people want to work these professions, they just don’t want the jobs.