You’re too expensive
If you’ve been in your job 10 years, you’re too expensive. For the company. I don’t mean that you personally aren’t worth the money you’re making. I mean that you aren’t worth it to the company. Think about it. You were hired with (presumably) enough skills to do the job you’re doing. You’ve gotten regular raises–again, presumably. Your skills might have increased as well. BUT YOU HAD ENOUGH SKILLS TO DO THE JOB WHEN YOU WERE HIRED. So what is the added value for the company? Whether they admit it or not (and it is mostly not), companies lay off employees who have been with the company for a long time in the same job. Then they hire employees at entry level prices. Companies may or may not hire younger people. It really doesn’t matter. They hire cheaper.
They put you out on the street.
And what do you have to sell to your next employer? That’s the key for both of these situations. You need to figure out how to add value to the organization that is at least commensurate with your increased income, and you need to figure out how to add saleable skills to yourself so that when (and I don’t really believe it is ‘if ‘ for most of us) you are put out, you land on your feet in a better situation, and if you’re smart you see it coming and land first.
I’m a major believer in managing your own career and not relying on your company to do that for you. You certainly may have a manager, or a series of managers, who really believe in developing people and creating situations that allow them to succeed in their career. Count your self blessed, but year after year, your chances of keeping this kind of boss are slim. YOU need to manage your career. You need to put yourself into situations where you are continuing to grow and develop and move up the organization, so that when it comes time to put people out on the street it never occurs to anyone to come after you.
Think about it from the company’s perspective–what are you adding over and above what they hired you for that make you worth more to the company?