@Trynna3
All you need to know is that malware writers target Windows because of how widely Windows is used, there is far more Windows users than Linux users.
The main method how hackers get into user's system is by packing their malware into pirated software, they buy the software and then crack it to work without registration, followed by packing it with their malware which is crypted by them so that AV can't detect it.
The most usual kind of software are games, parents don't easily buy games every day to kids so they resort to torrents.
Hackers use these compromised systems as zombies to do their silly attacks without getting exposed.
This type of hacking is called social engineering, which requires user action rather than hacker's special skills.
Because people play games mostly on Windows that's one reason why nobody bothers with Linux and so Linux is inherently more secure.
Of course there are other schemas on how systems get compromised, but it ultimately boils down to how small Linux community is and many malware writers just don't bother with Linux but focus on Linux which again makes Linux a safe heaven.
But this does not mean that Linux is safe, it just means that Linux is not as much targeted as Windows, and same pretty much applies to Mac's.