The EU is telling Apple that the iPhone may no longer use connectors that they license themselves. Apple can do whatever they want in 2024, but if they want to sell phones in Europe then the iPhone will ship with a more agreed-upon connection standard.
If Apple still wants to use a superior in-house technology, they can implement Thunderbolt on iPhone.