Do you know this from experience or are you just guessing?
In practice, most school teachers I know are themselves perpetually on the verge of burning out from having to handle dozens of children who don't want to be there and constant complaints from their helicopter parents.
I want to want to teach, but I can't imagine transitioning from burnt-out in tech to teaching in a public school. I'm far more interested in looking into mentoring and after-school programs with voluntary participation.