These gains in productivity have been most pronounced during recessions, when manufacturers tend to layoff workers and then replace them with machines as the economy grows again and demand increases.
Apple's new guy in charge of retail launched a plan to layoff workers and boost profits, then had to walk it back when people pointed out that this was stupid.