Apple made their app store incredibly restrictive and took a massive cut of any profits that anyone was making. Not just app sales, any profits. (This happened to hey.com, they wanted a cut of the subscription that users were getting outside of their app). Sometimes apple would just outright steal developer's apps by making their own version, then blocking the original developers by claiming that they were making rip offs of Apple's apps (you'll find a few stories of that happening here on HN).
Then to really rub salt in the wound, they started telling developers in essence: "If you don't like the way we run our app store then you can always make a web app", despite the fact that they had purposefully hampered web functionality on their devices to force developers to use the app store.
It's really strange how their browser only started getting better all of a sudden when they were getting sued for their anticompetitive behaviour and the EU said they were drafting up legislation to break their monopoly.
It is directly due to the efforts of the EU that Apple has been dragged kicking and screaming to add functionality to their own ecosystem that is objectively demonstrably superior to what was available before.
As soon as you have sideloading, you have developers who can't get kicked off the app store for not giving a 30% cut because they're not on the app store.
The amount of fines that Apple wants to choose to pay is up to them. Either they cave, or they pay as large of a fine as for however long they keep fighting.