Is there a reason why windows are detecting it as a virus?
No idea, maybe you have already some viruses on your computer which are making the antivirus fuck up
Because there's a trojan