The battery, as well as the  rest of the bike's electrical system is DC (Direct Current), and an alternator, as its name implies, provides alternating current (the direction of current flow reverse periodically).