To most horses, Bitter YUCK! has an unappealing taste, making chewing on the particular sprayed object unpleasant, thus decreasing the unwanted behavior.
Petco.com