Answer: There are a few factors that come into play:
1) Greece is an archipelago, so the different city states that rose were isolated by the Mediterranean Sea
2) Greece is very mountainous, so the city states that arose on the mainland, or smaller islands were separated by the mountains.