Separate hardware and software. If you buy an iPhone, you have the right to put whatever software you want on it. Similarly - Apple can restrict whatever software they provide to you on those devices in return. Future software updates, App store, iCloud etc.