In our charging systems, the stator produces AC output which goes to the regulator/rectifier. The ouput of that is DC plus an AC voltage on top of it. A capacitor is often used to filter out higher frequency AC ripple on the rectified DC supply. It helps keep the electronics happy and audio quiet.