It depends on what level you look at. Cooperation between individuals in a company could be for the selfish gain of the company. Cooperation between entities like companies can be for the selfish gain of even larger entities like nation states. Cooperation between nation states, e.g. members in the EU, can be for the selfish gain of the group, at the expense of states outside the group that get second class treatment.