Not only that but Microsoft has an anti-virus anti-malware application. AND as part of Windows Update they regularly run the malicious program removal tool.
And I suspect MS would ship antivirus built into Windows if they could. Unfortunately, antitrust makes packaging things that make sense a non-starter if other companies sell it.