I'm willing to bet it is in the license agreement for Windows and Windows Defender, so you have likely allowed Microsoft to do this