He started in a Bentonville garden center. Three decades later, Walmart’s CEO is betting that the future of shopping depends on understanding what people would rather be doing.