Your examples are an inherent part of the value proposition. With an Apple ID and an iCloud account you can do much more with your device than you otherwise could. Customers who buy into the Apple ecosystem need to be assigned an identity within that ecosystem, and most people understand that. If it bothers you, you can always decline, or buy some other phone or computer.
There is no room whatsoever to compare Apple IDs with being force-fed sales pitches for unrelated items while trapped in an aluminum tube at 30,000 feet.
If you wanted to tilt at this particular windmill, Microsoft account IDs would be a better horse to ride. They provide little or no value to most Windows users, but the company does everything it can to drag you into their ecosystem.