To an extent, it does encourage people to misbehave. A good example is the peer review process, where some reviewers say whatever they like because their identities are concealed.
That said, anonymity does not always results in misbehaviour. Some individuals will not change their behaviour whether or not they are anonymous.