Flowers attracts bees due to sugary secretions.
And flowers need bees for his production
Because bees take flowers polin to other flower.
This process is called pollination.
In this way we know that every thing in created in the world is based on some purpose. Nothing is created thing which have to purpose.