It is a moral guide when in captivity. The code of conduct makes it easier for people to remember where they came from and what they need to do. It brings them a connection to their morals and culture and allows them to stay within the guidelines of their beliefs.