Despite the name, peanuts are legumes, not nuts. The English name "Peanut" is clearer, which means "pea nut" in German. This name indicates the relationship to the legumes.

Peanuts grow underground
Peanuts are the seeds of the peanut plant. They grow in pods that form underground, unlike beans or peas.
Why the legume is called a nut is probably due to its shape and hardness.
Peanuts do not contain any poison but a lot of histamine
Not everyone can tolerate peanuts because they contain a lot of histamine. People with allergies should not eat these legumes either raw or cooked.
tips and tricks
Other legumes such as beans should not be eaten raw as they contain the toxin phasin. When cooking, the poison is neutralized and makes the beans or chickpeas edible. Peanuts, on the other hand, do not need to be heated. They are also edible raw.
ce