Aleister Crowley somewhat echoes this juxtaposition in the motto of his magickal journal, The Equinox: "The Method of Science, the Aim of Religion."
Stems from the then popular interest in Natural Magick. Evolved into science and engineering.
https://ia903209.us.archive.org/30/items/the-rosicrucian-enl...
Stuff like Kabbalah is considered occult, as it Christian mysticism, or folk mysticism that coexists with religion.
Also, one can study things without making judgements about them. The history of human beliefs is interesting.
If you read many of the grimoires, there is very little NLP of any kind. The Papyri Graecae Magicae is one of the oldest explicitly magical documents we have from Greek Egypt, and it does have some manipulation spells (as most magical documents do) but none of this has to do with coersion to join a religion or join in a war, or to "do bad stuff". It's largely "technology" used by a practicing magician (a moonlighting Egyptian priest) to help the laity deal with their daily lives regarding helping their crops grow, animals not get sick, healing sick children, getting revenge on their neighbors and former lovers etc.
Magic is always a tool in the hands of the oppressed as a response to tyrannical hierarchy.