I'm old enough to remember that people retired from the jobs they spent their whole lives working at... and wondered why those barely older than me were already struggling to find meaningful futures within their careers, nevermind within their company.
Reaganomics and the new business method of short term gains at all costs destroyed company loyalty and loyalty of the employee.
Don’t get into the the mindset that employers are all psychopaths - not only is it not true, but it will damage your career thinking this way.
Your manager is likely to care (not always in my observations), but there can be various reasons for that (affected deliverables (compensation); bad experience of delivering the news, etc.). His manager may care. Next level manager is much less likely to care, and so on. And the decisions are usually made on the level where I doubt people care much. People on that level may not like that they have to lay off people and have some sympathy for those affected, but they will lay them off as soon as they think it is necessary for one reason or another. It's their job to keep _the company_ going, not to keep _you_ employed.
This is how employees should treat their relationships with their employers as well. Do what's right for you and your family, and don't act on some misguided sense of loyalty to your employer.
I don’t think employees should think of the company as their family, but don’t get into the mindset that all employers treat their employees as disposable cogs.
It opened my eyes and I stopped caring about getting fired at my low paid office job. And guess who never got fired even after slacking hardcore?
I work at a global mega corp run by private equity guy. This is definitely not the way our management works. From my manager up through our BU head, people are valued as a long term investment and are not casually discarded. Yes, if you are not productive, you can be dismissed. But valuable people are not taken for granted at any level of seniority in my experience.
Additionally, management is an incredibly hard job to do well, and most people suck at it, so most management chains do incredibly short-sighted things.