Carnivorous animals, lions and leopard, occupy the same niche but lion predates mostly larger animals and leopard takes smaller ones. This is called resource partitioning. It is a mechanism in which there is the division of limited resources by species to help avoid competition in an ecological niche. In any environment, organisms compete for limited resources, so organisms and different species have to find ways to coexist with one another. That is why lions predate mostly larger animals and leopards take smaller ones.