There is evidence currently limited to West Africa where chimpanzees mainly adult males but also females or juveniles are observed creating a kind of shrine of accumulated stone piles beside, or inside trees as well as regularly visiting these trees picking up these stones and then throwing them at these trees accompanied with vocalization “performativity” which is (speech, gestures) to communicate an action.
Chimpanzees have been observed engaging in “social learning,” both teaching and learning such as tool use as well as communication signals: vocal and gestures. Such social learning is seen as playing an important and unique role in the development of human language, culture, and mythologizing.
All together such things observed in these West Africa where chimpanzees could indicate some kind of what could be perceived as magical thinking or at least quasi-magical thinking in the sacralizing of trees as it does not seem connected to some utilitarian or food foraging practice of which rocks or tools would make since. This at first may sound too complex for a nonhuman animal but what needs to be understood is that chimpanzees have been known to exhibit “metacognition,” or think about thinking.
Also chimpanzees have the greatest variation in tool-use behaviors of any animal, second only to humans, where humans seem to have magical thinking or irrational beliefs are hardwired in our brains at a very ancient level because they involve mentally-fabricated patterns of thinking. Moreover, such processing abilities are somewhat common among non-human primates if not lower mammals as well to some extent and can be seen as a part of evolutionary survival fitness and thus not uniquely human.
It can be thought that different emotions evolved at different times with fear being ancient care for offspring relatively next later followed likely by extended social emotions, such as guilt and pride, evolved among social primates. Why this could be important is it is believed that emotions evolved to reinforce memories of patterns adding to survival and reproduction as well as responses to internal or external events and in such remapping facilitated by emotions could involve mentally-fabricated patterns of thinking which could superstitionize things in the world that do not truly limit it to the way it is possibly adding a kind of animism or the like involving some amount of magical thinking such as sacralizing of trees.
Magical thinking such as beliefs that there are relationships between behaviors or sounds thought to have the ability to directly affect other events in the world. Whereas quasi-magical thinking is acting as if there is a false belief that action influences outcome, even though they may not really actualize or intentionally hold such a belief.
Now I doubt West African chimpanzees are fully mythologizing the trees to a human magical thinking extent but we can see some possibilities of what about them could be inspired by magical thinking. Magical thinking may lead to a type of causal reasoning or causal fallacy that looks for meaningful relationships of grouped phenomena (coincidence) between acts and events.
Moreover, magical thinking when applied to trees are significant as believed sacred totems and natural sacred representations in many of the world’s oldest myths possibly because of using magical thinking when observing the growth and annual death and then revival of their foliage, seen them as symbolic representations of growth, death and rebirth.
As well as trees may be conceived as existing in three realms the underworld or death with the roots the world of the living the trunk existing in our world above the ground and its branches reaching to the heavens thus existing in the realm of the spirits, ancestors or gods.