Companies often point to expanded AI capabilities and increased investments in the technology when announcing mass layoffs.