No idea! It's important not to ascribe purpose or intent to beneficial but random mutations. It must do something. Like you're saying, more pollinators or scare away pests etc. Somehow it is evolutionarily beneficial for reproducing with the additional benefit of being sick af