Amazon is cheaper than Walmart and Costco on a key valuation metric, but the reason why may surprise investors.