Apple created a closed eco system. You can love it or hate it, embrace it or steer away from it. What I don't get is why 3rd-parties, including other companies or governments should have any control over it? Consumers decide if they like Apple's choices or not. If not, they ultimately move on to something that better suits their needs.
One of the ways to look at it: if you boil down the term «eco system of devices», you will see that it's unlike any other thing that humans can commit to.
You can just go and buy a different car or a TV if you don't like your current one.
You can switch your electricity provider or mobile carrier, but usually it's not that easy, because there are contact termination fees and such. At least nowadays you can keep your number when switching carriers.
But things get much more complicated when it comes to software and electronics.
Many kinds of data that you keep on your smartphone are not really portable, and many accessories are not compatible between different operating systems (AirTags, HomePods, etc; it works the other way, too — you can't use Chromecast devices with iOS)
So it's only fair that governments try to regulate these eco systems, and aim for more portability / better competition.
And since modern smartphone is a car key, a government ID, a payment method, a bank login, an information source, and plays many other crucial roles, it's almost like government regulation is unavoidable.