AI-linked layoffs are surging, but the technology isn’t at the root of all recent job losses.