there's no magic involved, like attracts like, and glass is polar (like water), while plastic is nonpolar (like oil), so taking into account that the resin on bud is oil-based (nonpolar), it makes sense that it would have a higher affinity for plastic than glass.
BTW, though i make it sound...