In theory, I don't have any problem with Walmart (or any other store) wanting to check my receipt. In theory.
Theft is a real problem. It drives up the cost of goods for all of us. If receipt checking catches thieves, it's a small inconvenience.
If...
If I just finished paying for my purchases and walk directly to the exit, how is it that the receipt checker is going to do any better at preventing theft than the cashier who just physically touched everything the receipt checker is looking at? If I stole something, and got it past the cashier, the receipt checker is going to find it?
That's security theater of the highest order. IMO.
I can see the value of this at places like COSTCO. There's so much mixing of folks and goods between the registers and the doors (food area) and the fact that nothing is bagged (easy to toss in a stolen item), it really doesn't bother me that COSTCO wants to count my items and check my receipt. It does bother me to have to wait on line again to exit the store.
As for store security.... again... the store has a need to prevent theft. If I was stopped by LP, and they wanted to search or detain me, I would ask them to call the police. I would absolutely not allow anyone to search me or sequester me in a back room. But, I'm happy to stand quietly in a public place while the police are called.
Now, get off my lawn!