This question already has an answer here:
I am very confused about the spamming on Stack Overflow in general.
Why? do users spam
What? does it even do for them besides create a bit of attention
Also what are we doing about this?
Also I've noticed trolling on Stack Overflow were users ask questions that seem legitimate but aren't I'm really just confused about why all this goes on and are we stopping it or anything!