and a vegetable has no legs bat all

... so why is it called a legume?