> bad stuff like tech debt, things becoming more complex/stale, data challenges, version/compatibility issues etc
You are missing the (most common) case that those bad stuff are already there when you join the new company. Switching jobs doesn't automatically mean starting from a clean slate.