Because Apple is very far from being a monopoly.
For example, if they banned any non Apple apps in the Apple App Store, there's still ~60% of the market in other stores (Google Play/Windows Store), but that still isn't allowed and is very anti-competitive.