This is fundamental to the thermodynamics of all heat engines.
In the case of EVs the battery charge/discharge cycle is 80% efficient, the electric motor in the order of 90%. Mus add the electrical generating efficiency to this food chain.

MAZDA seem to have achieved an IC technology of diesel cycle efficiency on gasoline fuel, plus reduced pollution.