As someone who taught kids in person and fell into a deep depression with how Kafkaesque that job was and then found so much more gratification as a SWE, all I can say is, the author's experience is not universal. (And I am a parent, so it's not about disliking kids.) I will say though that remote work is definitely dystopia. I need an office and the presence of people physically.
I recall being pretty miserable working in a maze of cubicles surrounded by coworkers. I don't think there are single solutions for any of these questions. What works well for one person will not work well for another.