Cars used to have DC generators, which charged the battery directly. Now they use alternators, which generate alternating current, as their name implies. The alternating current has to be rectified (converted to direct current) to charge the battery, but I guess the system as a whole is more efficient that way.