Oslo is on the ocean. While the arctic ocean is cold, it's still water. If the air temperature drops below the temperature of the water, the ocean will release heat and warm up the air.
It is very difficult to get it colder than the water. Note also that Oslo is on a warm current - https://upload.wikimedia.org/wikipedia/commons/9/9b/Corrient... - the Norwegian current is a continuation of the Gulf Stream (compare the California current which is a cold one)
https://en.wikipedia.org/wiki/Oslo
> Oslo has a humid continental climate (Köppen climate classification: Dfb)[48] or, if the original Köppen winter threshold −3 °C (27 °F) is used, an oceanic climate (Cfb) in the 1991–2020 base period.
https://en.wikipedia.org/wiki/Oceanic_climate
> Examples of oceanic climates are found in Glasgow, London, Bergen, Amsterdam, Dublin, Berlin, Hamburg, Vienna, Bilbao, Oviedo, Biarritz, A Coruña, Bayonne, Zürich, Copenhagen, Prague, Skagen, and Paris. With decreasing distance to the Mediterranean Sea, the oceanic climate of northwest Europe gradually changes to the subtropical dry-summer or Mediterranean climate of southern Europe
> The oceanic climate exists in an arc spreading across the north-western coast of North America from the Alaskan panhandle to northern California, in general the coastal areas of the Pacific Northwest. It includes the western parts of Washington and Oregon, the Alaskan panhandle, western portions of British Columbia, and north-western California.
Compare this to the continental climates.
https://en.wikipedia.org/wiki/Minneapolis#Climate
https://en.wikipedia.org/wiki/Boulder,_Colorado#Climate
https://en.wikipedia.org/wiki/St._Louis#Climate
https://en.wikipedia.org/wiki/Chicago#Climate (has the population of 1/2 of all of Norway)
With no large bodies of open water, the air temperature is not moderated by the release of heat from the water and can go further to extremes on both ends.