It’s not, though. Consumers don’t buy ads. Apple wouldn’t have a monopoly, or be harming consumers.
Otherwise Facebook using its social media site to take over ads from Google would be
anti competitive. Or Google taking over with AdSense by using its search engine. Or TV/cable stations taking over from newspapers or radio.
None of this is anti-competitive. They’re different markets that change as the underlying communication medium changes.
And it’s not like ads are somehow killed by Apple. It’s the surveillance based customized ads that have been made less common as customers can deny their use (or approve them!). Ads existed for a century without that level of surveillance.