Walmart's entry into groceries, and supermarkets' reaction, sent some shoppers to Whole Foods, co-founder John Mackey said.