Businesses are investing capital in automation rather than hiring people in large part because laws artificially inflate the cost of labor. The government keeps making it worse with things like obamacare. I'm pretty sure CVS would rather have plenty of cashiers rather than self-checkout machines, but hiring them has become uneconomical despite very high unemployment.
I totally don't understand this perspective. I use automated checkout at every opportunity – despite the fact that it sucks – because the sooner people never have to suffer the indignity of being a cashier again, the better! Repetitive, dehumanizing jobs are a means to an end for those with no privilege. The challenge of this century is to find better means to that end.