It's also to mark the receipt, preventing someone going back into the store and putting same items into the cart (slyly walk by self check out) and leaving with the same receipt.
Loss Prevention will have cameras and sometimes plain clothes folks wandering around the store, and if they suspect you're up to something they can zoom in and follow you. Adding a step prior to exiting where your receipt is checked adds one more chance to confirm bad behavior, and gives LP time to zoom in on your cart and your face.