And gasoline has such a high energy density that even at 25% efficiency it's more effective at storing and transporting energy than batteries.
You can burn unrefined oil at a power pant at 40%+ efficiency saving the losses in the refining step and with all the complicated emission controls not in the vehicle.