Why are there fewer security programs for Linux or Mac OS than for Windows?

On a computer running Mac OS or Linux, the risk of infection has traditionally been lower as cybercriminals have so far primarily attacked Windows computers. Meanwhile, however, there is also increasing malware for Mac OS. Also, Mac OS or Linux users should install an anti-virus program specifically for Mac OS or Linux to protect them.