License would've helped them know the rules of the road.
I'm from India, we don't have that many ebikes but we do have a ton of teo-wheeler options. All of them need license and some insurance that covers liability etc.
The place where I lived in India also had mandatory helmet law as well, which were all enforced by the traffic police.