Mac's don't have a registry like Windows. The main problem with spyware and viruses are that most of them install behind the scenes. A user will know when they are installing something and if they get prompted for the admin password, they know it's because they are installing something at the moment. If you were on Windows just surfing the web, and all of the sudden you get a pop-up saying that a program wants to install and asks you to type your admin password, you probably would say "Hey, I'm not trying to install something, what's this?" And you wouldn't type your password.
Plus there are a lot more Windows password cracking programs out there than there are for Mac's, so it's easier for almost anyone to get their hands on a hacking program to crack passwords in Windows. Mac's are built on top Unix, which is much more secure and less likely to get hacked. I'm not saying they cant be hacked, it's just not as likely to happen