Instinct
Organisms have two ways they can get behaviours. One way is learn, by observation, and by repeating things which have a pleasant outcome. The other way is to inherit the behaviour pattern by heredity.