What causes static in a coffee grinder's receptacle?
I don't know anything about burr grinders, but with blade grinders you generally get tiny bits of coffee bean being spun quickly around the outer edge of a plastic enclosure. This is a recipe for generating static electricity by the triboelectric effect, the same as rubbing a balloon on your hair or shuffling your feet across a polyester carpet.