But Apple pre-installs it on Apple’s phones. Apple can do whatever they want on Apple phones.
Google is forcing installations on Samsung phones, LG phones, etc through their contract.
It is entirely possible what Apple is doing would be illegal IF they licensed/sold the OS to other OEMs.