The discovery shed new light on just how advanced the civilisation that lived in the ancient city of Petra was.