Companies aren't running around firing everyone over 20+ years because they're run by completely clueless morons who don't understand how the company works. They're laying off people whose yearly raises have put their salary/pay in a tier that they no longer deserve. Plenty of really good engineers are being retained by the companies they work for. You're not because you've failed to increase your knowledge base and/or take on more responsibility/leadership roles, and the company has finally realized that you're just not worth the six figure sum they fork over to you every year. Or maybe your boss just hates you, who knows?
Companies aren't running around firing everyone over 20+ years because they're run by completely clueless morons who don't understand how the company works. They're laying off people whose yearly raises have put their salary/pay in a tier that they no longer deserve. Plenty of really good engineers are being retained by the companies they work for. You're not because you've failed to increase your knowledge base and/or take on more responsibility/leadership roles, and the company has finally realized that you're just not worth the six figure sum they fork over to you every year. Or maybe your boss just hates you, who knows?