Why do plants of the legume family usually contain more protein than other plants?

Plants of legume family have root nodules in which the symbiotic bacteria Rhizobium fix
atmospheric nitrogen into ammonia. The ammonia is subsequently available for many important biological molecules such as amino acids, proteins, vitamins and nucleic acids.