The devil by many accounts is believed by Christians to be a master of "trickery" and one would suppose it natural enough for the Church to have us all believe that magic is the work of the devil.
Yet apart from the well know so called miracles familiar to the Jesus of the gospels; exorcism, laying on of hand and showing of faith, Marks gospel states that Jesus ordained his own disciples with the same power to be able to do likewise such as heal the sick 'cast out devils, demons and unclean spirits', as he himself had done.
But from the Christian perspective they are presented to us as miracles, but when performed by those of another faith or religion or no religion at all they are considered by the Church to be unacceptable magic or witchcraft or sorcery. Although, the table was once seemed to have been turned on Jesus when the temple authorities accused him of using or appropriating the use of a devilish spirit to heal the sick.
The difference in attitude obviously lies in the recognized legitimacy of the act in accordance with different standpoint and religious belief. If a Christian Pastor or Priest performs a healing, it is without question said to have been done via the help of god. But if a heretic achieves the same result, it is said to be magic and deemed to be the work of the devil with the church proclaiming "by the glory of god" while the heretic stands accused of it being the work of the devil and an abomination.
So it is then that those that practice "magic" without sanction from the Church were identified as sorcerers that attracted and used evil spirits with the use of rituals and incantations that they were to become servants of devils, demons and evils spirts. While the Church have also been for millennia using exorcism, Mass readings, sprinkling of "holy water" beads, knotted rope and other sorts of sacraments and rituals including payers..
One good example and starting point in investigating these double standards can be found reasonably early in the Bible.
Its the story of Aaron and his magic rod and those staffs of the priests of Pharaoh that the Bible refer to as sorcerers, and magicians. the story can be found in Exodus.