For driving, AC waveforms are generated via the drive inverters from the DC battery pack. For charging, rectification is done which has its own ripple and isn't pure DC. For both cases, surely all the switching electronics to convert voltages are generating fields. These are all sources of EMF, despite the energy source itself being DC it can be used in many changing ways.