Ancient Greece was divided into several different city states, the most famous of which being Olympia, Sparta, and Athens (Of course there were many more). Citizens of each city-state would "elect" or vote an athlete they felt most confident in, to complete in the Olympics which was Held in Olympia.