Flowers attract pollinators. Bees live on pollen and nectars.  A well-fed insect will return to cross-pollinate the vegetable patch. The result is much more food for winter.