When you have for-profit healthcare, it’s not surprising that the system optimizes for short term profits over the well-being of healthcare workers or patients. People are willing to pay almost anything to stay alive and/or healthy.
Healthcare workers will be paid (and otherwise treated) just well enough that they don’t leave. Sadly, the incentives are awful for people who get into healthcare for altruistic reasons.