I don't believe this is true in all cases. Maybe for some products, but at least other commenters here are confirming that some manufacturers refund the grocer for any unsold product. (So, Safeway only pays for the inventory that gets sold.) Seems risk-free for grocers on the products they have those sorts of deals with.