I wonder whether there were options, but one very important reason why independent city-states was the geography of Greece, which is full of mountains and valleys, which made the transport between the cities harder, and the defense of these cities easier.