Why do cats purr?

The cat’s purr has been quite the puzzle for scientists but they now believe that the sound is created by the vibration of muscles within the cat’s larynx.
Cats purr as a sign of contentment, as we would expect but they also purr when hungry, stressed, frightened, ill or in pain.