Cats purr not only when they are happy but also when they are feeling content, relaxed, or seeking comfort. Purring is believed to be a form of communication used by cats to show that they are relaxed and comfortable in their environment. It can also serve as a self-soothing mechanism during times of stress or discomfort. So, while it's often associated with happiness, cats can also purr for various other reasons.