AI-related layoffs are grabbing big headlines, but the new technology might not actually be the reason for the job cuts.