It is not accurate to say guinea pigs shake only when scared. Shaking can have several causes.
• Brushing or sensitivity to touch.
• Cold temperatures causing shivering.
• Excitement before treats or playtime.
• Stress or fear, though this is not the only indicator.
• Medical conditions, such as neurological problems.
Observe other behaviors, the environment's temperature, and consult a veterinarian to rule out health issues if shaking persists.