The receipt check is to make sure you’re not over charged(charged more for accidental scans)
That's the second reason I find the practice so irksome: on top of requiring customers to wait in line to prove their innocence, they pretend that the practice is for their customers' benefit. And people believe them!? Maddening.