Why America’s biggest grocer has trouble keeping its shelves freshly stocked