Electrons are like that in a wire. If one moves they all have to move. Thus when you turn on a switch an electrical potential difference (created by a generator) immediately causes a force that tries to move the electrons.
5.7m questions
7.4m answers