An API and an operating system that runs on bare metal are in no way similar. One has a bootloader, a kernel, a filesystem, etc. The other is just a set of apis. The freedom to run your own choice of software on the OS that you boot on the hardware you own is important. It's a very different philosophical choice from being able to, or not being able to make use of one company's social media publishing API via https.
If my operating system has a rootkit or APT I am boned. If twitter is hacked I couldn't give a fuck, it doesn't affect my equipment or how I use my computers.