It doesn’t need to. The OS could download ads and show them in—app and report back impressions through the OS. And, Apple doesn’t make much money from iOS ads.
But developers do and they make free apps on the app store
Apple doesn't have any ad frameworks that are open to third-party developers, so they would have to build one to support this. And that didn't work out so well last time they tried.