As someone who grew up in the 80s-90s, my historical sense of layoffs is that they were a response to economic hard times, whether industry-wide or company-specific. Companies laid off when profits fell or disappeared, which then drove a need to search for ways to cut costs.
But the major tech companies are all seeing continuously growing revenues and profits within the context of very healthy general economic numbers, yet they are all laying people off.