I think people outside of teaching, and some people inside of teaching are clueless about how hard some teachers work. It does depend on the school, and you can get trapped in a terrible school and find it hard to move on. Less hard now there is such a critical teacher shortage, but even so, you need the time and energy to do it, job applications take hours that you might just not have.
My worst situation was as a single mother in a school that demanded 100+ hours per week, and working straight through the night once or twice a week was inevitable. We were ordered in on weekends, and during August, and the school set up and paid for a rudimentary creche, it wasn't great. I was there 7 years. For the students, this was a good school, and I am proud of what I helped them achieve there- but for staff it was awful - and still is, I still know people trapped there because of the conditions of their residency, etc.
My next worst was a school I worked at had shorted hours, but more done on site, so most staff were there 6am to 7pm every day, 8pm when the school opening hours were extended. My children were at uni by then - and there were NO other mothers on the staff. When one joined the staff, they would resign within weeks. Again, it was a good school for the students, but gruelling for the staff, very high turn over - I was there 4 years, and was the longest serving classroom teacher when I left.
My current school is nothing like this, hours are more reasonable, and manageable, plus I am part time, so have a proper work life balance - staff still work many hours over evenings weekends and holidays though, and all after school activities are expected, but unpaid.
All 3 are very good schools, so people can take pride in what they help students achieve. That is what keeps people there - I have worked in terrible schools where anarchy reigns, and nothing you do is ever worth you turning up in the morning for - shorter hours maybe, but a pointless life.