Living organisms are known to be able to adapt to the natural environment in which they exist over time. One of the adaptation techniques is called MIMICRY. Mimicry is a type of physical adaptation whereby an organism (animal) looks similar in appearance to another organism in order to discourage or push away predators.
This is the case of the viceroy butterfly in this question, which has coloration that is almost identical to the poisonous monarch butterfly. Although, the viceroy butterfly is not poisonous but its coloration that looks like poisonous monarch butterfly makes it appear poisonous to predators. Viceroy butterfly is said to mimick the poisonous monarch butterfly in order to deceive predators.
Moral altruism they helped informed only by ethical consideration regardless of any rivalry between the teams. Moral altruism is the highest calling in altruism(helping others selflessly) the team did not consider that if they failed to provide shelter to the other team it would get some advantage over it.