Llamas spit primarily as a way to establish dominance and maintain social hierarchy within the herd. It's a form of communication used to settle disputes over resources like food, territory, or mating opportunities. They don't spit because of bad taste, to chase predators, or as a cooling mechanism.