Companies like Microsoft, Amazon, Meta and Oracle have laid off thousands over the past year. Here's the leading cause behind job cuts.