Magic may well have been real. Healing crystals, shamanry, witchcraft, voodoo, things of this nature may have been real at one point and have since been patched out. These could have simply been glitches in the program.
We’ve all heard of glitches in games that can be exploited that eventually get patched. Could have been real.
There was this old cold fusion joke that went something like that. Where a programmer notices someone getting free energy. They proceed to fix the bug, recompile and reboot. Fixing the problem.