They are making over a billion a week in profits (and still growing). Layoffs can be justified but it's a bit of a head scratcher to be doing them when the company seems to be doing generally well
https://www.cnbc.com/2023/05/11/techs-new-business-model-do-...
My dad was in a different field and when the company he worked for did layoffs the company was in a serious financial state and in danger of just folding entirely and also the employees had a say in how layoffs were implemented. Until I started working in tech I had assumed that was the norm but now I realize that that amount of respect for the employees from leadership was the exception (at least at large companies).