Peanuts are not true nuts, but rather legumes that grow underground, making them more closely related to beans and lentils.
Why it is true
Unlike tree nuts, peanuts develop in pods underground, classifying them botanically as legumes.
Source: Botanical Classification
Would you rather be asked first?
This is the reading side of the site, so the answer is in the sentence above — that is the whole point of it. Test yourself works the other way round: the question comes on its own, and the fact and the explanation only appear once you have answered.