Historically speaking, Apple didn't allow side loading at all.
The EU changed the laws within their jurisdiction to require third party app store availability.
Historically speaking, Google made claims that Android would allow you to run anything you like (they didn't even have their own app store at first), and also that Android was open source.
They have incrementally been rolling back those stances ever since.