It has a lot to do with their geographical position in the middle of the mediterranean. this is why the war with carthage became so important too, as both cities had the same advantage in this respect.