Magic is integrated into society and wizards are held in esteem. Egyptian wizards put curses on tombs; nowadays curse-breakers for Gringotts try to regain the treasure locked in those tombs. One pyramid has mutant skeletons of Muggles who’d broken in and “grown extra heads and stuff” (as Ron puts it). Hermione was jealous of Ron’s visit, saying “Did you see that picture of Ron and his family a week ago? I bet he’s learning loads. I’m really jealous — the ancient Egyptian wizards were fascinating.” (PA3)
The term "Ancient Egypt" covers almost three thousand years, from c. 3500 B.C. to 500 B.C. The iconic Great Pyramids of Giza were built around 2500 B.C.
A Magic Spell Book from Ancient Egypt http://www.archaeology.org/news/2727-magic-spell-ancient-egypt-curse-codex-coptic-deciphered
Ancient Egyptian Magic
By Dr Geraldine Pinch
Egyptian Magic from The Wisdom of the Egyptians By Brian Brown