Because offending each other tends to make everyone angry and bitter. Being angry and bitter is generally not fun. Many online communities are joined with the intention to have fun, so it kind of defeats the point.
Of course, that's not always the point. I doubt anyone joined 4chan due to its reputation for being a "nice" place.