Many animals that suffer predation have adaptively adopted camouflage that allows them to hide in plain sight. To be most effective, an animal must mentally match itself to its background; a feat which seems highly unlikely, as it would require that the animal know what its body looks like, and how it fits into the landscape. Yet that is exactly what animals seeking cover do.
Animals select backgrounds or positions to improve concealment. ~ English zoologist Martin Stevens et al
How animals could possibly have this fantastic cognitive ability is a mystery.