People tend to project because they have a trait or desire that is too difficult to acknowledge. Rather than confronting it, they cast it away and onto someone else. This functions to preserve their self-esteem, making difficult emotions more tolerable. It’s easier to attack or witness wrongdoing in another person than confront that possibility in one's own behavior. How a person acts toward the target of projection might reflect how they really feel about themselves.