Amazon, Target and UPS are laying off thousands of employees, but the reasons behind the cuts go a lot deeper than AI.