i agree that to operate in a country (or block of countries) a company must be prepared to respect even the unjust laws. which apple has obviously been willing to do all day long in many parts of the world.
in this case, it really seems to me like the EU is harming consumers who benefit from the coherently-designed, safe (as compared to androland) walled garden in favor of some fairly overtly xenophobic power play against incumbents local champions cannot compete with on the merits. IMO this type of action directly invites retaliation against European companies and interests abroad.
in the related cases of airdrop interop and alternate stores, it is certainly being required that apple release its proprietary IP to competitors.
there are plenty of hungry competitors in the smartphone market beyond apple and google including Samsung huawei and scores of others.