Amazon is free to sell books in their app, they just need to pay a portion of their revenue for the privilege of doing so much like in the mall.
In the brick-and-mortar world, malls are fungible, and stores that sell the same goods are fungible. The iPhone is not fungible.
Anyone that wants to constrain themselves to a single market, needs to accept the rules of focusing on a single market.