I have a few clients in retail distribution so I know how this stuff happens. It's just due to the sheer size of the logistics operation.
These centres are huge and often automated. Each item in the 300,000 sq ft or so warehouse has a number. Someone enters the number of the item into the picking system. The picking system takes the number entered, finds the items, puts it in its hopper and then delivers it to packing.
So someone probably entered the wrong number in this case or there was a system issue in the numbers or someone had stocked something on the wrong shelf. Chances are that the number in their system for what you got is reasonably close to what you wanted but has nothing to do with the name of the product or anything.
If they are good when you approach them to fix it, then you are usually good with buying from them again.