Company loyalty goes both ways. In my experience, companies DO NOT CARE.
For that last couple decades, I’ve worked for consulting/engineering/construction type firms.
That means, I’m billable to a client, or I’m not making money for the company that employees me.
The company doesn’t exist to be a charity. Investors put money into a company to make money, otherwise the company would not exist and my job would not exist.
I’ve not taken it personally if a reduction in work resulted in a reduction in the number of employees, or the hours the employees get to work. Sometimes I was let go, sometimes I was just warned of the date we needed to get more work, sometimes I was the one telling others their job no longer existed.
I’ve found work several times, and kept work when things got slow, by helping my company find and keep work. I never took the opinion they “owed” me a job.