They need bees to spread their pollen and help make new seeds. Bees love nectar so flowers offer up their nectar as a reward for visiting them. And they’ve got manyways of showing what’s on offer.
Flowers are an essential source of food for birds and insects, including the dozens upon dozens of species of wild bees found in most cities. For them, what's on the menu is a matter of life or death.