Because you're not buying features or consuming what you're buying through the app.
Is Amazon supposed to give 30% of all purchases made through the Amazon app? ofcourse not. If Amazon made additional search features an optional upgrade for the app, I'd imagine Apple would want a piece of that.