Why are tech layoffs coming after such great Q1 earnings?!

In April, the market applauded good Q1 earnings reports, but weeks later, tech stocks are choking and layoffs are already here. WHY!?