The EU tried the soft approach for many years, and Apple stubbornly refused to play. "This authoritarian method" of representing the populations they are meant to represent as part of a democratic society rather than letting companies continue to do what they want came with ample warning.
EDIT: Someone asked about the mandate for it, and deleted, but worth pointing out that the EU parliament supported this with a majority of 602 to 13, so it has support literally from the far left to the far right.