Cats purr to communicate with other cats and humans. Purring is usually a sign of contentment and pleasure, and cats may purr when they are happy or when they are being petted. Purring can also be a sign of distress or pain, as cats may purr to comfort themselves. Purring can also be a sign of hunger, and cats may purr to get their owners' attention.