Sometimes this things happens for the following reasons:
-Downloading from internet ( full of keyloggers and rats where people share a file in a exchange to inject your computer by passing your computer anti-virus, yes there is programs for that)
-Acessing websites with malware, logging into...