Norway has put like 30 years of efforts into building up impressive electric transmission and EV-charging infrastructure. Check out e.g. these articles:
https://cleantechnica.com/2023/03/08/how-norway-became-the-w...
https://www.mckinsey.com/industries/automotive-and-assembly/...
Also note that the amount of habitable land in Norway is rather limited, so you don't get to drive hundreds of miles over flat highway-friendly terrain, like e.g. in the US Midwest.