The environmental change that would cause the crocodiles to lose the competition for food is drought.
During a drought, water sources would diminish or dry up, reducing the habitat for crocodiles and making it difficult for them to ambush antelopes when they come to drink. This would give lions a better advantage as they can hunt on land, where antelopes would be more vulnerable without access to water.