In real life, actions have direct consequences. When you’re online, you’re hiding behind a screen, whatever you say you won’t get hit in the face by an angry guy. Unless he finds out where you live, but that almost never ever happens.
I know people that are completely different when they’re online. You wouldn’t recognize them, really. That security gives confidence. Some choose to abuse it.