Also in most countries of this world, charging an EV effectively means charging with a majority of energy derived from burning gasoline (or equivalents).
Fully 70 countries in the world generate more than 50% of their energy from renewables [1], and it's climbing rapidly.
[1] https://en.wikipedia.org/wiki/List_of_countries_by_renewable...
Burn it in a combined cycle power plant to convert it to electricity and there are still substantial loses to waste heat but much less than when burning it an ICE car. There will be some smaller losses in the power grid and charging infrastructure to get that electricity into your battery, and some small losses in your EV's electric powertrain, but in the end around 40% of the energy of the fuel ends up going toward propelling your vehicle.