To be fair, this isn't a very apt analogy.
A better one would be to liken Apple to a smart fridge...
- Is it ok for Apple to say "only products bought through our smart fridge's grocery app can be stored in this fridge" ? --> probably not
- Is it ok for Apple to take a cut when the consumer purchases through the smart fridge's app directly? --> IMO clearly yes
- Should Apple be required to warn you that it'd be cheaper to buy the same brand of milk from a grocery store 10min walk away? --> IMO clearly no