I know a handful of people who have been laid off. Each one was very angry about being laid off - it was unfair, the boss always had it in for me, etc.
The ones I talked to a year later would ruefully admit it was a net positive for them. They were forced to reevaluate their careers and make corrections. One, for example, said it gave him the kick in the pants to start his own business, which he'd always wanted to do. Another told me it gave him the motivation for getting clean from drugs (the reason he was laid off was showing up for work high).
Being laid off is a lot less traumatic to people than getting fired, so layoffs are done to periodically let low performers go in a way that preserves their dignity, and makes it easier for them to get another job.