What might happen in a community if farmers did not plant legume crops?
Crops would loose potential in the future.
Legumes help restore some of the nutrients in the soil, particularly phosphorus. Without these nutrients, the soil would deplete and after so long would being to become more and more sand like.
Not to mention that people eat those crops.