How does the process described help prevent the issue of an infected person placing grocery items in the cart while shopping, only to have the cashier touch them at a later point in time?
No mitigation effort is perfect. Not even vaccines work perfectly.
The point is to reduce the average number of people that each infected person spreads the disease to. Not to get it to 0, which is impossible.