Actually, it has been essentially balanced out by a greater need for behind-the-shelves workers to pack and load orders for online/app delivery and eCommerce orders.
This is how the economy often works. The loss of one kind of job to technology lets the business grow by using the same number of staff, or often even more, to serve new opportunities/markets/products/services.
The data seems to contradict that, if Freakonomics is to be believed (and some people don't like them, I get that). Apparently overall headcount actually increased as a result of self-checkout. E.g. cashiers did drop a little but loss prevention more than made up for it.
My local Kroger variant does that. Or they did, maybe it stopped, now that I think about it. I never saw anyone use it. Intuitively it sounds like it could be handy, but it seems like in practice everyone just kept on doing things the way they're used to doing it.