The environmental change that would cause the crocodiles to lose the competition for food is a drought.
In a drought, water levels would decrease, making it harder for crocodiles to ambush antelope as they drink. With less water available, crocodiles would have fewer opportunities to hunt effectively, potentially leading to a decline in their food sources.