Defender doesn't do this: it's an optional security application by MS that's included with Windows. Users are free to disable it if they wish. Nothing is preventing Windows users from running whatever software on top of Windows that they like. Defender will prevent some malware from running, and many users like this for obvious reasons, and the fact that it's included for free unlike competing anti-malware software, but it's not so baked into Windows that you can't turn it off. An antitrust argument could possibly be made, along the lines of Windows including IE and putting competing software out of business, but that's a different issue than what we're discussing.
So you're right about this being really an OS vendor issue, but Microsoft doesn't force anyone to use Defender, and doesn't prevent anyone from using competing products. Google also allows using competing app stores (or even side-loading .apk files), though only a tiny fraction of users take advantage of this. Apple is really the problem here because it doesn't allow these things at all.
Even if someone wants to ignore this concept, where is the line drawn? Should a hardware manufacturer, or OS vendor, be allowed to make a product that blocks malware on their systems (like Windows Defender)? Windows was seen as a poor product because of all the adware that infected it in the early 2000s. That issue has largely been resolved, thanks to efforts from Microsoft. Should they not be allowed to solve the biggest issue that plagued the public perception of their product?
I realize I'm move the goalpost slightly, from hardware to OS vendor, but ultimately, it isn't Apple's hardware that's creating these controls, it's iOS, the operating system. And in the case of Google, it's clearly an OS vendor issue, as Android is installed on a wide variety of hardware from many different OEMs.