Layoffs tied to AI hurt worker productivity – and the reason may surprise managers