Strange. I've often see people with peanut allergies have alligeries to nuts like Almonds but not to Legumes like Chickpeas or Lentils.
On the other hand "nuts" including peanuts are typically processed in the same facilities, so cross-contamination is real too.