While the electric motor is the most efficient, that doesn't tell the reason why an ICE automobile has a greater drive range than a similarly constructed EV. The reason why an ICE automobile can achieve a greater drive range than an EV, even with its vastly inferior efficiency is because one gallon of gasoline contains 33.410107 Kilowatt Hours of energy (great density), and also because one gallon of fgasoline weights 6 pounds.
A 33-kilowatt hours battery is already very heavy regardless if its fully charged or not. Just imagine that there are two similarly constructed automobiles, 2022 Mini Cooper for example, one powered by a battery and the other by an internal combustion engine (this is the case for the 2022 eMini and the ICE counterpart). Ten gallons of gasoline in the ICE Mini is quite light compared to the battery in the eMini. Just read the specifications of both, and you will notice that the drive range of the ICE Mini is double of the eMini, and also that the eMini is still heavier than the ICE mini.
The ICE mini becomes six pounds lighter every time it consumes one gallon of gasoline, while the weight of the eMini remains the same throughout its battery's discharge. There is no technology in existence that humans can use to build powerful batteries (high capacity batteries) that are extremely light. For example, the electric Hummer weights in excess of 9,000 pounds and carries an extremely heavy battery that allows for producing 1,000 HP, while the electric Ford Lightning is much lighter and carries a smaller battery. If you were to tow two identical 6,000 trailers, one with the Hummer, and the other with the Ford, both trucks would have a similar drive range. In this case the Hummer would have to carry more weight up and down the road than the Ford truck. The more the vehicle weights, the lesser its drive range.
The typical small 4-cylinder automobile such as the Civic, Corolla, and so on can be driven somewhere near 500 miles on 13 gallons of gasoline that weight 74 pounds. You can pack a lot of energy in a battery with 13 gallons of gasoline. It would be an enormous battery, because the more powerful a battery can be, the heavier it becomes.
This engineer explains the density of fuel versus electrical energy (he drives a Tesla automobile):