Everybody was bashing Elon, but once they saw that he cut 70% of Twitter staff and the company was still running without a hitch, a lot of ceos decided to follow suit. They all can lay off together to avoid any one company getting bad press and they can blame 'the recession'. The reality is these companies are soft-colluding to trim costs for shareholders, because they are all turning profits and still laying off.
Not all companies are the same. If all companies cut 70% of their workforce they would be in trouble.