Magic is the systematic and symbolic use of logical fallacies to produce an effect. Of course it does not work. But if one thinks it works, then one could selectively find evidence and convince themselves that it has worked.
Don't believe me that logic is a system of logical fallacies? Look at the foundational claims of magic, then look at a list logical fallacies and see.