Cats purr when they're happy as a way to communicate contentment and relaxation. The specific reason behind why cats purr when they're happy is not fully understood, but it is believed that purring releases endorphins, which are the body's natural feel-good chemicals. Purring can also help cats to calm themselves down and soothe any stress or anxiety they may be feeling.