Say you have 2 fish resources. AI1 has 1 spare clam and AI2 has 1 spare crab. Trading both fish resources (meaning 0 to yourself) for the crab and clam gives your cities same health and sooner or later +1 with AI for good trade relation. This is even getting more interesting adding other resources with a +2 health bonus depending on buildings in your cities.