The environmental change that would cause the crocodiles to lose the competition for food is a drought.
During a drought, water levels decrease, reducing the habitat available for crocodiles in water bodies. This could lead to a decline in their ability to ambush antelope as they come to drink, giving an advantage to lions who can still hunt on land. Thus, the competition for food would shift in favor of the lions.