Because if a nurse fucks up, the costs are large. When a teacher fucks up, nothing happens that wasn't going to happen anyway. So paying nurses more in order to attract more competent people makes sense. And paying teachers dog shit also makes sense.