In my experience, this is often an after-the-fact rationalization by people who "survive" layoffs to explain them, and a convenient justification by leadership for layoffs. If you've ever been in the room when layoffs are planned or discussed, the actual process is way more focused on blunt cost, personality of the people involved or on the chopping block, and is often practically a tossup considering "performance" is not really a clear or meaningful metric (actually, more often it's arbitrary for most companies --- they will find the metric they need to justify laying off someone). This phenomenon is greater the bigger the company and the more abstracted managers and leadership are from their lower level employees.
At one company I worked at, a whole division got laid off because the director didn't like the manager of said division.
There are rationales behind it. The simplest one is that the product is matured enough so you don't need these so-called 10x engineers or seniors.
Then the lowest performers.