Both the predator-prey relationship and the cooperative relationship are relationships where the species depend on one another.
In the predator-prey relationship, the predator is feeding on the prey, thus it needs to consume them in order to survive. On the other hand, the predator also regulates the number of the prey, thus stopping them to overpopulate and deplete the resources, thus doing them a favor by killing some of them as much weird as it may sound.
The cooperative relationship is a relationship where the different species help each other, protect each other, or provide food for one another. One of the species is providing some things that help the other species to survive, while the other species in return helps in other things that help the other species.