Do you mind to elaborate a bit?
When he laid me off it was clear that he had to hit a hard headcount number, and I knew the project I was working on was “discretionary”. The HR meeting was “this is a headcount reduction and not a reflection on your work. Have a lawyer look over your severance and please accept or decline it within a week.” Really quite professional.
Employers themselves usually look into spreadsheets with a bunch of KPIs deciding who to lay off, without any regards for the effort you have actually placed into the job.
But the company itself couldn't care less about anyone working there.