It's also not the first time I have seen this type of layoff. I was a part of a few companies that got taken over by vulture capitalists and it's much the same. Everyone gets sorted into an arbitrary bucket based on metrics. Usually, these include commits, vacation taken, etc. Then the MBAs sort the list and fire the worst. Hostile takeovers are always, always bad for the employee. Twitter, however had other problems than a usual company. A dramatic lack of profitability, too many salaries to pay, etc. I'm not saying his methods are just but for Twitter to even have a chance at profit there needs to be some very, very dramatic changes.
If you were to believe the media Musk is literally destroying free speech (on a private platform?) and firing people for no reason. I doubt he would do this. He's a jerk, but he's not an idiot. It doesnt help twitter employees happen to be the most vocal, often whiniest, group of people so this is getting megaphoned to death in a way that wouldn't happen almost anywhere else.