Which stops 99% of it. The small amount of spam we see here is from people manually registering accounts to post.
Keeping spam out of comments with open registration is difficult, but not impossible. Hidden form fields (honeypots) and a few other techniques can kill almost all of it.
Here's a good description of the techniques:
http://nedbatchelder...ext/stopbots.html