Walmart has all of the sales data on every single product they sell. And anyone who wants to come to Walmart has to provide their sales data.
Or you have Target that is movely heavily into generics right now. Nearly 1/3 of a Target store is stocked with their own brands.
Retail is harsh and it is not unique to Amazon at all. The only difference is that Amazon has infinitely wide isles, and they host a swap meet outside the doors.