It's more that people in Italy like to live and die close to where they were born. Genoa also was a very busy port until relatively recently, which is a natural population magnet.
It's the biggest port in Italy, and 63rd worldwide.
The population increased when the big public industrial complexes were active, now it's declined.