Stores bake that into the cost of doing business, it's like dropping something and breaking it, in the vast vast majority of cases you won't be charged for it, just be clean up on aisle 3...
Heck I've dropped jars or similar things during bagging after paying for them several times and every time I was offered a replacement.
Mistakes happen, it's often considerably more expensive to deal with customer complaints especially in the age of social media than it is to replace an item.
It's also important to note that this is baked into the cost of doing business all along the supply chain, if items are not sold they will be often returned by the store to the distributor which would chuck them as a loss, or more often than not sell them for other uses other than human consumption.
Some perishables are thrown away others are then sold to other industries e.g. the roast that was left over might end up as dog food...
For a dog food company it's cheaper to buy discarded meat produce the dog food take samples and while it's being shipped do the cultures to ensure that there are no contaminants or bacteria and if something fishy is found just do a recall upstream for specific batch than it is to buy "fresh" meat and ingredients which are fit for human consumption.
Supply chains are huge and complex and all these little annoyances don't really count for much, it only really bothered very small stores that have to buy everything almost up front and they aren't leasing effectively shelf space for distributors.