You don't own the OS; Apple does. And you use it under the, agreed upon, Terms and Conditions. If you want to use your phone without iOS. . .
The hardware is locked to the software and Apple does not give away their firmware code. What do I do now? Other than let EU fairly regulate what is a world dominating phone provider, that is.