Canny sheep sometimes resist going down the slaughterhouse ramp to their deaths. So workers sometimes train a goat to go down first, triggering the herding instinct and solving the problem. The goat isn’t harmed and can be used over and over for this purpose.
It’s called a judas goat.