Large cities have 15% more of everything when compared to a more loose population. Economic and creative output, but crime and disease as well. It's a statistical fact that no one has been able to explain fully.
But yeah, it's not obvious that depression would spread e.g. within a class like a flu.