Beans produce a range of bright coloured flowers before the beans set. Some people actually grow beans as ornamentals because of the flowers.
They do provide some early seasonal colour and a food source for bees. The quantity of flowers give a good indication of the crop to come.