Apple's primary revenue growth and stickiness is in controlling everything you can do with their hardware, and taking a cut of every transaction. If it ran macOS it could run any code the user wanted and there'd be no way to guarantee a 30% cut of every movie, game, song, or experience you have on it.