There were more lagoons on the coast of Venetia than what exists today, and even the lagoon landscapes were different. In fact, had it been left to nature, there would have been no lagoons today.
Venice was rich. The wealth came from long distance trade, which relied on the geographical position of Venice.