Alternators have cost and size advantages
A DC generator must have a copper rotor head, i.e. a commutator carbon brush. The manufacturing cost is certainly much higher than that of an alternator. . Although the alternator has an extra set of rectifiers, the electronic components are relatively cheap.
The alternator can be made smaller and more suitable for the narrow space of the car
p>