Beans themselves contain a good amount of nutrients and fiber and therefore sometimes thrown into the "vegetable" category, when they are actually legumes. Therefore, baked beans are a legume with other ingredients added, such as bacon, sugar and ketchup.