Cats produce the sound of purring by the rapid opening and closing of the muscles in their larynx (voice box) in coordination with the diaphragm muscle. This creates vibrations in the vocal cords, producing the soothing purring sound that cats are known for.