Their wealth and ability to buy electric cars at home is largely dependent on that massive oil income. They don't refine oil locally and would have to buy back gasoline, so electric cars still make economic sense too.
Norway is a beautiful country that the rest of the world often tries to emulate, but their economy is rooted in a darker side.
[1] https://www.nationmaster.com/country-info/stats/Energy/Oil/P...