Berlin proper has one of the highest density boar populatipns in Germany, including woodlands. As have other urban areas. Fun fact, hunters in those regions have the legal obligation to use silencers. Those are practically illegal in Germany otherwise.
Yes, indeed they’re coming in the city because of the uncollected garbage. They’re searching food inside. One problem that points to another… Rome is beautiful but very complicated!
We have this problem in Haifa, Israel too. The city borders on natural woodland, and the boars go into the neighborhoods looking for food in the trash.