When a fan is rotating, it acquires some kinetic energy. When the switch is off, because of its motion, it continues rotating for some time until it stops because of the air friction. So it is due to inertia of motion that fan continues to rotate.
Hence, both A and R are correct and R is the correct explanation of A.