These sparks happen from accumulation of static electric charge—often arising from two different materials rubbing together.