Because the effective Swedish population density is very low? The effective density is affected by household size, and about 40% of Swedes live alone without children[0]. Sweden had the biggest Corona infection vector neutered and still did horribly.
[0] https://www.statista.com/statistics/526013/sweden-number-of-...
I'm quite happy to accept that 'population density' is inadequate - I mention it only in passing in my comment, the point I'm making is that Sweden is not a country you would expect to perform at the european average, and given that, the most natural thing to do is to compare a country with its neighbors. Neighboring countries usually share many factors, and on top of that, they have a direct transmission effect too.
Sweden did much worse than its neighbors. The explanation for that is either in the ways that Sweden is different from its neighbors, or in the difference in public policy.
I certainly don't know which to blame, but I don't want to hear any more lionization of the Swedish approach that doesn't solidly get to grips with that question.
So maybe it's not geography we should be talking about, but instead the number of older vulnerable people at the start of the pandemic.
[0] https://www.news-medical.net/news/20201116/Study-compares-de...
I thought your comment was going to be about the fact that urban density didn't end up being that useful a predictor of spread, except to the extent that it correlates with household size. In general, people were catching Covid from being inside with others, not from incidental contact with subway poles or passing people on the sidewalk.
Germany at 2651 did much better than Sweden. France is around 4800. Italy is just over 4000. Sweden is closer to Denmark than to either of those two.
"Population weighted density refers to a metric which measures the density at which the average citizen lives. It is calculated by taking weighted average of the density of all parcels of land that make up a city, with each parcel weighted by its population" [0]
By that measure we get Sweden is at 2693, Denmark at 2399 and Finland at 1741. [1] Concluding that Denmark did amazingly well given the cards they were dealt and Sweden is at the average of Europe due to very a urbanised population compared to the size of the country.
[0]: https://data.jrc.ec.europa.eu/dataset/jrc-luisa-udp-pwd-ref2...
[1]: https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/LUISA/Secon...