For the same reason that people should have sex outside their own families: other groups often come up with innovative solutions to various problems, and by trading with them, you can benefit from their knowledge and experience and approaches.
Of course, trading too openly can also be detrimental to one or more groups sometimes, too.