Because it allows you to install apps outside the official market? Using the same analogy would you consider OSX full of malware?
Given how apple treats ios users, I'm genuinely surprised they haven't turned osx into much of the same kind of walled garden - especially after this whole macbook pro debacle, what with apple showing how much they care about their professional clientele.
Believe me, they tried. There was a minor riot among developers and many decided to stay out of the App Store
(not for any ideals mind you, but because of limitations of the store sandbox)