"The current Great Barrier Reef structure started growing on top of an old reef platform about 9000 years ago when the sea levels gradually rose at the end of the last Ice Age about 20,000 years ago."
The reef was there long before and responded to rising seas.