When I was doing my PhD, my supervisor always told me that scientists need to move around. It's somewhat of a tradition in academia even if few people understand the reason behind it fully (e.g., my supervisor did not I suspect).
Academia is a really old institution and has evolved mechanisms to ensure its future. This is one of them I guess.
I experienced the people there as a close-knit community. So, moving might counter this effect. The other reason that comes to my mind is signalling. If you're willing to move with your family, it's a strong signal that you take academia seriously. I guess every institution likes to have such people.