It was either "pay for Apple's development services" or "don't publish apps" which isn't a very competitive or fair option when the App Store can arbitrarily reject you.
Of course they did: they could have just chosen to not publish apps which would have crippled iOS. The only reason it feels existential is because developers made a Faustian bargain from the beginnning.