You can create a charging station with solar panels and a battery.
Gas stations don't fill up themselves out of thin air — a massive infrastructure has been built (and wars fought for) for extraction, refining, and supplying the fuel.
Battery storage is common in charging stations, because it allows peak charging speeds higher than the grid connection, plus use of renewable and off-peak electricity.
You can (and people do) create a charging station with just a battery. Using the same metric as the gas station, which will indeed need more than just a barrel to make it work.
Obviously for the first few years it was difficult to drive an automobile very far.. and every year it got better and better.