why are auckland wellington dunedin and christchurch mian centers of new zealand

They happen to be the largest cities, and are spaced well apart on the two islands, with good harbors.