Not my point.
I don't want to confuse people with allergies, but most of the allergies to 'nuts' are tree-nut allergies. Yes peanuts are completely different (actually the Fabaceaae these days, Leguminosae has gone the way of Paipillionaceae).
Even this isn't very helpful, for example many close relatives of the panut are trees, and peanuts are more closely related to oak trees they oak trees are to ash trees.
Vast numbers of plants have nuts, including peanuts, but unless you are a botanist (like me) you wouldn't consider them nuts. Similarly, Almonds and Walnuts aren't nuts, to a botanist they are seeds - they come from inside a fleshy outer fruit. It's just like a tomato is really a fruit, a pineapple is a vegetable and a strawberry is neither.