Question: how does an animal know to perform certain crucial life actions before exposure to it? Answer: it is built into their very being.
An example of an instinct is the kangaroo 's ability to crawl into its mother 's pouch to drink milk