Technically the phone isn't wiped - what GrapheneOS apparently does in this case is to delete just the encryption keys (deleting all the files would take too long). So, theoretically, the data can still be retrieved if the encryption keys are restored.