Why do people post inappropriate messages and pictures online?

—They do it so the person who posted it feels better about themselves then the person who they posted the information about and that people will make fun of them and not the person who posted it.