Two points - (1) Possession - I was holding the item. (2) Common courtesy - which didn't exist here at all. If someone else was in the process of purchasing it, the vendor could have said so when I picked it up. That goes back to point number 1.
Net result is an annoyed customer who is being sure to share the experience with anyone who will listen. . . Got your attention.