Cats do sometimes purr when they're in pain. It's not only a coping mechanism but also a healing method. The vibration is physically rejuvenating and helps with everything from swelling to muscle repair.