Great topic - I think recognizing this is happening, is what is most important. AND don't do nothing.
The challenge is many companies you work with become accustomed to you and define you as a position rather than a person. Which can and often does result in career choices made for you.
Remember people can barely manage themselves let alone others so look at it like you are in charge.
Your mission - if you choose to accept it, is to rebel against this in productive ways , striving to be all you can be, joining the army is not necessary but start talking and hanging around folks, wherever they may be, who are where you want to be in 5 years,