I guess it's a win-win situation. Stack Overflow's ranking goes up, because of all the sites referencing it, and the spammers make money.
But as a consequence, the users have to sift through spam results.
But as a consequence, the users have to sift through spam results.