Anubis was once the lord of the dead, protector and guide of souls. Until his position was usurped in the Middle Kingdom by Osiris, that is.
No, this didn’t happen in the myths, it happened in the culture. What’s the difference? One is created by people, while the other is created by people.
Anubis was still an important figure, thought, don’t worry about him. Anubis helped Isis embalm Osiris, after all.
Oh, and you won’t believe what happened next…