Literally not true. Some bets just don't work. If a company tries to enter some new market and fails, they may use a layoff.
Sounds like a strategic mistake.
"Some bets didn't work so let's destroy lives and cause needless suicides. It wasn't my fault, I was only following orders." - Random Meta VP of Customer Misery.
The strategic mistake is that they don’t have any other good ideas to deploy these folks toward. A company of this size and financial condition in technology with exceptional leadership should not be out of good ideas.