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.
9.4m questions
12.2m answers