Bearings constrain relative motion of the shaft (rotor) and reduce friction between the rotating shaft and the stator.