Why organic compound are volatile in nature

Insects and animals use the odor as sex attractants, as ways to find food, and nature to do its thing. For example, bees are attracted to flowers and in that process they pollinate grasses, flowers, fruits, etc.