# Why are the poles of the stator and rotor taken differently in the picture below?

The rotor and stator in the picture below have the same orientation of flux lines yet the are taken as opposite that is flux lines leaving the stator is taken as a South Pole while flux lines leaving the rotor is taken as a North Pole. Why ?