Apple need the 30% to keep the services revenue up to keep the stock price up. I have no doubt many people at Apple know this is wrong, including the people at the very top, but stock must not go down.
It's obviously not 30%, because on top of this you better pay for ads on your app name or have your competitor show up on searches for your app.
I always had a mild smile for the tales of the "secure refined Apple store" but seeing the reality has been a bigger shock than I expected. It's a scam haven.
I would say there isn't such a thing as "the right amount of profit margin" as much as there is "the right way to secure a profit margin". The more your margin is able to exist because competition isn't allowed the less right it is, be it 1% or 99% in absolute terms.
The market obviously exists. Apple is the seller, numerous other businesses are buyers, and they are buying, hence the current amount is an amount "the market" is willing to pay.