The transition away from horse and cart did not occur because governments decided it so but because the alternative was better. The push from ICE to BEVs is driven by regulation and not natural customer demand.
And future bans on new car sales of petrol and diesel cars have been announced in various states and countries.
Norway by 2025: https://www.thedrive.com/news/7917/norway-doubles-down-on-pl...
The UK by 2030 (but plug-in hybrids still allowed): https://www.bbc.com/news/science-environment-54981425
California by 2035: https://www.npr.org/2020/09/23/916209659/california-governor...