It’s the root!
It is a leguminous plant, so there are rhizobia bacteria that grow with it (which you will learn in high school biology), but the rhizobia bacteria will stimulate the root cell wall, thinning it, causing the cells to swell and form root nodules. We just eat the nodule part, but it won’t cause disease~~~~~~~~~~~~~~~