All thinking, including the basic phenomenology of science is at root magical thinking. We tie results to causes, and without further study, they remain tied. One of the things we tie to causes most directly is our own wish, since we do things like move our bodies and manipulate conversations so unconsciously that we cannot analyze the process without involving others.
The idea that applying any set of principles make this any less magical is dismissed by Hume's problem of induction. The idea of induction or observation is itself 'magic' and remains so despite our biases. Science itself is an enormous elaboration of metaphors, all derived from more natural magical thinking.
Particles 'vibrate' because mystical substances in ancient India 'vibrated'. The metaphor is entirely dishonest, and springs straight out of religion. But it is a part of basic physics because it helps, somehow.
Science has a point in insisting we should always get around to explaining our beliefs, when we can. But scientific thinking must always be built upon a more basic foundation, and it must always leave space for the facts that are so close to us that we cannot focus on them (what exactly is morality, what is a purpose, etc.)