Windows has been the target of malware for decades. This has resulted in a more hardened system and a better user awareness.
On the other hand, OS X has not really needed to go through all the troubles of crime fighting until recently.
===> Now, with its growing market share and lower user awareness, it is clear that OS X is becoming more and more attractive to malware authors. <===