When there's not enough food or water for all the animals, they have to compete for what's available. The ones that survive are the ones that are better at finding and getting the resources they need. So basically, competition for resources decides who gets to live and who doesn't.