Except Apple and Google make money from different things. Google makes money from selling your data. So they are fine with giving away software and turn a blind eye to side-loading of apps. Apple makes money from selling hardware and making a cut on software.