Using fossil fuel generated electricity is still more efficient than drilling oil, cracking it into petrol, along with lubricant oil to stop your ICE seizing, driving it to a petrol station, filling your car and burning it at awful efficiency.
Renewable sources of electricity are a huge improvement to be encouraged, but EVs running off fossil generated electricity are better than petrol or diesel ICE.