Hard to make a case for dynamos on an ebike, but the advantages, such as they are:
Always available - I'm guessing once the controller shuts down the battery to prevent over discharge, that's it, no lights, even though there's plenty of juice in the battery.
Standard bulbs - hard wired lights...