It is harder to hire new (good) teachers than it is to fire bad teachers.
My first teaching job paid $29,000 a year in 2004 and I had a CS degree. My classmate who I went to high school with, same college, same major, same minor, and moved back to the same town.. his starting salary was $80,000 and they paid for him to get his mba. He works at Google now.
16 years later and I make $60,000 teaching (because I moved to a much wealthier district). Next week I start a new job programming for $80,000.
Who is going to teach cs in my place? Who is going to turn down $80,000 - $100,000 for a $50,000 teaching job... In a school with 3000+ students, during a pandemic?