The answer is 'instinct'. This is innate complex behavior exhibited by an organism that is not learned. Some common examples are dogs shaking themselves dry when wet, honeybee communication via intricate dances, animal courtship behavior during mating season and the building of nests by birds.