For me it's a combination of 1) I see the writing on the wall: they don't really want me in this profession any longer and 2) I'm getting tired of it anyway — increasingly less willing to (laterally?) "move my skills".
Begrudgingly learned Swift (I like it tho). Begrudgingly learned every new code management system that has come down the pike....
I'll switch careers and move on, go back to "service sector" pay scale.
Maybe I worry more for the current crop of programmers. Those of my generation did all right — had fun. The industry is changing and not necessarily in a direction that looks enjoyable.
One more protip. At a higher level, moving up further does not mean being a better coder. It means talking to people (often on different teams), thinking and generating ideas (and applying for patents), sometimes taking risks to prove those ideas, figuring out how to improve process, and generally communicating. If you believe you're not good at any of these, you can actually study and practice them and get better at them. I did, and it's working out for me.
I'm not sure how I feel about it. Sometimes I just feel fortunate for the career I've had. I mostly wonder if I'll miss it or be glad to move on to a new chapter.