Daft question not knowing much about electric vehicles - could you charge one of these via a petrol generator?

I have a typical Honda builders generator I use for power tools.

It runs for ages on half a gallon of fuel plenty enough to charge for well over an hour or two and you would get more miles electrically than it you put the fuel in a car's tank.

Any reason why this would not work?