Writing is definitely on the wall for outsourcing and MVP-style work. GPT can create a landing page and a backend/frontend for a business _literally today_. You just have to ship it, but it won't be long until that isn't needed.
There will still be a lot of value in understanding how systems work and interact with each other, at least until ML is able to build and maintain entire systems.
Until that happens, there will still be a lot of value in being able to dive into codebases and refactor/optimize as needed, at least in the medium-term.
Once platform engineering is mostly automated and running AI-generated binaries is de-risked, then code quality doesn't really matter. Hell, _code_ won't even matter at that point.