Earlier quoted context omitted.
Engineer turned product manager here: there is way too much yak shaving involved in bring a software engineer. Dealing with all the poorly written libraries, unpredictable bugs and shitty APIs made me realize it wasn't something I wanted to do 12 hours per day for the rest of my life. I enjoy the intellectual challenge but I enjoy less figuring out which version of which package crashes my app
You're definitely on to something here. This is probably also why engineers like to 1. rebuild everything from scratch (but better!) 2. can't handle staying at a company more than a few years.
I think for a while you pretend to yourself it's going to get better, then it never does. Code is a always messy, confusing, etc. There's never time to really fix it.
Switching every 2 years helps you pretend that's not the case, at the new place it'll be better and you'll definitely have an impact on this code base this time.