Cats use purring as a way to communicate a range of emotions, including contentment, comfort, and even as a self-soothing mechanism. They may purr when they are feeling relaxed, happy, or seeking attention from their owners. Purring can also be a way for cats to communicate that they are in pain or distress, as they may use it as a comforting mechanism in such situations.