The same way you’d get gas for an ICE car, with a generator.
Ok so you pour gas into a generator to charge the car. Do you realize how inefficient that is?