That’s all a matter of taxation. Modern refining does not produce diesel/kerosene as a leftover unless you want it.
Indeed, just like buying EVs is a matter of subsidies.
What's interesting is that the price of electricity in the EU makes EVs not competitive on that basis.
EV are still not competitive when most of us live in flats, and most would never even consider buying one given their prices if it wasn't for the subsidies.