That assumes someone qualified to be a teacher is also qualified to be a software engineer. Have you met a lot of urban public school teachers?
Of course you have to be a PM, so there’s that. I’d rather literally herd cats or manage a kindergarten class.
"I call people and ask them to do the things they said they would do, on time. Then we have meetings about it for 4-6 hours a day. Technically I'm in charge."
My post does assume that the career would attract more highly qualified candidates if the pay was higher.
I’d guess I’ve met and spend significant time with 100 teachers. And a handful were capable of being a professional programmer.
EDIT: found an interesting "day in the life" article by a self-labeled urban teacher.
https://theeducatorsroom.com/a-day-in-the-life-of-a-teacher-...