They are attracted to flowers, and cannabis makes flowers aka buds. They are harmless other than possible bringing in male pollen from another grow or wild plant. Not much you can do about it out doors, but they won't eat your plants if that is your concern.