Where do botnets come from?
For your computer to be part of a botnet, it first needs to become infected with a type of malware that either contacts a remote server, or other infected computers in the network, in order to get instructions from whoever is controlling the botnet, which is typically hackers and criminals. Despite being grander in scope and scale, however, a botnet malware infection is no different from a typical malware infection.