essential oils are extracted by steam distillation.
this procedure works great for compounds that are both:
1) inmiscible in water
2) volatile (have a high vapour pressure)
waxes, having lower vapour pressures, will be left behind.
essential oils, being perfumated, are composed of compounds with high vapour pressure.