The vast majority of people have rapidly moved to purchasing things from Amazon, and this leaves Walmart in the dust. Yes, fakes are an issue etc. but most people don't know that. All they know is that Amazon is easy, they think it is cheap, and that Amazon will resolve any issues they have when e.g. getting bad items.
Amazon historically (and still kinda does) have a problem with getting perishables logistically to last-mile delivery points, whereas Walmart and Sam's Club have already figured this out and done it for a very long time. There are TONS of places in the U.S. that do not have a Whole Foods nearby, but have a Walmart or Sam's Club just a mile or so away.
But Amazon is quickly catching up with its acquisition of Whole Foods, etc., and Walmart seems incapable of letting consumers just pay more to actually get this service like Amazon or Instacart do.