It's weird to me when people think "layoffs = company struggling financially." Like watching a video about Microsoft that says that they must be struggling because they're laying people off.
No, layoffs are a way to inflate stock price. It is sacrificing lives on the altar of the stock market because investors see getting rid of people as positive for some reason.