Walmart trades oil futures for the same reason Southwest Airlines does.
During the mid-2000s, Southwest got so good at hedging and futures trading--plus was one of the only airlines that hadn't gone bankrupt so had the cash and credit and good reputation to trade on--that it was routinely called "a commodity desk that happens to fly airplanes."