You're ignoring ecosystem lock-in, which Apple is extremely effective at (eg, iMessage's "green bubble" bullying).
Regulation fills the gap when freedom of choice & ease of movement isn't actually viable for most people. See also search engine regulations, even though the barrier for using a competing product is much lower than it is for switching smartphone ecosystems
Also in this case you're ignoring the bigger picture of the entire industry is incentivized to be "anti-consumer" and hamper repairs. Right to repair isn't about Apple, it's about everyone. Nobody is going after Apple specifically, they are just the leading example. Samsung, Motorola, etc... are all offenders here as well.
Regulation fills the gap when freedom of choice & ease of movement isn't actually viable for most people. See also search engine regulations, even though the barrier for using a competing product is much lower than it is for switching smartphone ecosystems
Also in this case you're ignoring the bigger picture of the entire industry is incentivized to be "anti-consumer" and hamper repairs. Right to repair isn't about Apple, it's about everyone. Nobody is going after Apple specifically, they are just the leading example. Samsung, Motorola, etc... are all offenders here as well.