They must have done a cost/benefit analysis and came to the obvious conclusion that having to build multiple variants would be more costly than the profit they’d have earned by continuing to gouge all the non-EU consumers on proprietary cables and junk.
The world owes the EU a debt of gratitude for forcing apple compliance on this one.