...and to solve problems with equipment, and to access items that can’t be left unsupervised, and to answer questions, and to observe interactions between customers and intervene if necessary, and to notify management of problems they cannot solve, and, and, and...
You see a pretty clear model today with self-checkout. And it's probably the same even if you make self-checkout better. You have people readily available when things don't "just work."
Even then, part of a cashier’s job is to avoid shoplifting: https://www.securitytags.com/theft-self-checkout