Tens of thousands of layoffs are being blamed on AI. Experts say there may be more to the story.