Question: how did anubis become a god?
Answer: When the Osiris worship came to power, Osiris took over many of Anubis' jobs as caretaker and protector of the dead. As this happened, Anubis became 'He Who is Before the Divine Booth', the god of embalming who presided over the funerary rituals.