It is not bad if your guinea pig purrs when you pet it; in fact, it is a great sign!
Guinea pigs do not purr exactly like cats. They make a soft, rumbling sound called "wheeking", which indicates contentment and happiness.
It means your guinea pig feels comfortable, relaxed, and enjoys your attention.
Enjoy the wheeking and cherish the bond with your furry friend!