Negative reinforcement. They are used to having a bad reaction to the sheep, they eventually learn that eating sheep is bad. It can make them sick and die. Even if the sheep isn't laced with anything, they will stay away because they think it is laced.