Another way to say "a cat purrs when it is content" is "Contentedness causes a cat to purr."