There are a few reasons why cats vibrate while sleeping. The most common reason is that they are having a dream. Dreams often cause muscles to twitch or spasm, which can create the vibration sensation.
Another possibility is that the cat is suffering from seizures. This is more rare, but can be serious if it occurs frequently. If your cat is vibrating during sleep and you're concerned, it's best to take them to the vet for an evaluation.