Just convenience I suspect!
People generally think a “peanut “ is a nut and when looking for them in a supermarket that’s where they would normally look!
I doubt if you would find people looking for peanuts in the legume section and among the lentils