A simple generator is similar to an electric motor.
With a motor, we put electrical energy in and get rotational energy out,
with a generator we put rotational energy in and get electrical energy out.
As with the motor, the current direction changes
with each half turn of the generator.
The generator produces alternating current
because slip rings are used in place of a split - ring commutator.

The slip rings keep a continuous connection
with the wire around the armature (continued).
If a simple electric motor with a split - ring commutator
is used to generate electricity, you do not get alternating current.
A different type of electrical output is produced.