What does the alternator do on the generator. Being it is a generator, and the bus has numerous batteries including a generator on the engine itself, I am confused as to what that little alternator really does if anything. Can anyone shed light on this?

2002 Newell Coach 621. The harder I work, the luckier I get.