This behavior is called a naturalist behavior. All organisms act in distinct and certain ways depending on the genome that is embedded deep within their DNA codes. Regardless if an animal is trained to do a particular activity, there will still be lapses with this because the organism follows codes within its genome to perform tasks that are ultimately geared at survival and adaptation.