What physical phenomenon causes the characteristic crackling sound associated with static electricity, and how does this relate to the rapid movement and discharge of electrical charges?