Yes, and laws involve intent. A lot of laws "when you do a thing that has a result and you intend that result to happen, you're guilty of creating the result". It doesn't matter the thing you do. If you invent some new way of killing someone, and kill someone with it, you're guilty of murder even if the never heard of this particular way of killing someone, etc.
In Apple's case, the edict was to create competition by opening up the app stores. Apple "opened" its app store in a way that failed to actually allow competition and so it is subject to the fine. This is exactly why laws work this way - to prevent what is now called "gaming" the system.
It’s a law that establishes no measurable compliance guidelines, while providing absolutely no limitations on what the EU can decide counts as a violation retroactively. It’s basically “We’re not going to tell you what we want you to do. You need to guess what we want you to do, and fuck you if you guess wrong.”
And it's a law which was crafted with the intent that it apply to a small number of specific companies. How Apple is supposed to comply is hardly an unexpected question.
In Apple's case, the edict was to create competition by opening up the app stores. Apple "opened" its app store in a way that failed to actually allow competition and so it is subject to the fine. This is exactly why laws work this way - to prevent what is now called "gaming" the system.