Spoiler Flowers in the desire to reproduce have to attract pollinators. To that end they produce oils that are designed to attract bees, butterflies, ants and anything else that will spread pollen. Essence of oils get the ball rolling. The results are seeds and reproduction. Jerry
Spoiler Essential oils, or aromatic compounds, found in flowers are what produce their scent. These oils are a combination of chemical acids and alcohol. The amount and ratio of oil and alcohol gives different species of flowers their individual fragrances. It is likely that flower fragrances evolve from chemicals originally meant to deter herbivores. Insects that visited these flowers, looking for pollen or prey to eat, were able to sense these chemicals. If the chemicals were not irritating or deterring to the insects, they would selectively visit flowers with these fragrances, which identified them as having available food. Another evolutionary scenario could be that insects that were able to successfully find a mate on a flower with a certain fragrance would return to a flower with that fragrance, looking for a mate.
I do not know, but I think it has something to do with the pollen they produce because both make me very sneezey. I love most fragrances though.