Click farms effectively function as janitors, mopping up spam someone else paid to throw so that no real user stumbles upon it, so they are beneficial.
It's ultimately spammers and scammers fighting against each other, so you could say the trash is taking itself out. Every dollar they spend fighting is one less dollar spent spamming actual users, so it's a win.