In an electric motor, the electric current and magnetic field exist (which are the causes), and they lead to the force that creates the motion (which is the effect), and so the left-hand rule is used. In an electric generator, the motion and magnetic field exist (causes), and they lead to the creation of the electric current (effect), and so the right-hand rule is used.