Linux us more varied. Windows comes in fewer versions, so there are more vulnerabilities a virus author can rely on being present on a Windows target. It is rather like why crop monoculture are more vulnerable to disease. Apple Macs used to have a similar reputation, but as they get more popular, virus scribes are taking more notice.