The laws of physics are not anti-competitive. What would be an anti-trust issue is if Walmart took steps to prevent their customers from shopping at Costco.
Apple is stopping iPhone owners from going to the equivalent of Costco by banning competing app stores. That's a pretty clear violation of U.S. antitrust laws.