Just having a healthy app ecosystem is probably worth more than the actual money you're pulling in from the apps themselves.
I think they charge whatever they can get away with and meaningful competition will drive it down dramatically.
"We simply can't give you a raise, we don't have the budget."
I think if there was competition, their prices would drop dramatically, and that would show you how much it actually costs them.
Epic themselves charge 12% IIRC for their store.
You might say, if Fortnite were given away, Walmart wouldn't stock it, because it would just take shelf space. Perhaps that's true, but who says that Apple needs to give (virtual) shelf space to free apps?
They could hide away apps that don't bring them money. In fact, that's effectively what they're doing anyway: Unless you have tons of downloads or you get featured, you are invisible on the App Store.
They are hiding away Fortnight, because it’s demanding a free ride on a pay product.
Apple owns the building that allows apps to set up shop and sell their services. As part of that deal they get a cut of every sale.