Animals can learn to fear predators through a process called fear conditioning, where they associate a specific stimulus (predator) with a negative outcome (such as harm or danger). This learned fear response helps animals to avoid potential threats.