Germany has basically as many privately owned guns as sweden per capita. Germany is nearer to the Balkans. It hosts a million people from a war country (Ukraine). There are lots of illegal weapons.
One important difference between Germany and Sweden: youth unemployment is much much lower in Germany.
Similar developments as in Sweden can be seen in the Netherlands, due to the drug trade.