They were powerful and influential because they were big trading centers on the coast. Basically, all traders who used their ships to travel from one place to another woudl visit these trading centers either for business or for rest so there was a lot of wealth that accumulated and the cities became vastly rich.