How could some people live there and build a city?
It wasn’t overgrown with rainforest when they built it. Possibly slowly cleared the land over decades before they started on the permanent stone structures.