Stotting makes a prey animal more visible, and uses up time and energy that could be spent on escaping from the predator.
Since it is dangerous, the continued performance of stotting by prey animals must bring some benefit to the animal (or its family group) performing the behavior.