It would be unusual for a baby to have peanut allergies
Babies should not consume peanuts, or other nuts, until at least a year of age. Allergies are caused by multiple exposures to something that your body does not like. As such, unless the baby was in an environment where they were frequently exposed to peanut dust, it would unusual for them to react. If concerned, see their doctor.