The Apple App store uses SDKs + system calls to install other apps, right? So, if you're allowed to sideload your own app store it should be able to do the same freely. So, the question then becomes about sideloading which I think you're supposed to be able to do freely as well.