The flavorings are intended to improve the palatability of their host medications by suppressing bitterness, adding sweetness, and/or enhancing the flavor profile.
Sheep particularly enjoy grazing on the lower branches, although trees appear to vary greatly in palatability (some are eagerly sought after and others ignored).