Really both are pretty basic things that make sense in the context of the society they came from. I'll bet you could find similar things in religious texts that are obviously not related.
True, but a huge % of the Earth ie the Jews, Muslims and Christians believe that the 10 Commandments came directly from God, while ancient Egyptians, were a wicked idolatrous culture enslaving poor Jews.
Its important that the Papyrus of Ani is
older as well as has some better provisions:
1) There's nothing against worshipping the neighbouring Mesopotemian gods, so the Egyptian Gods and Goddesses weren't jealous!

2) There's a bit about kindness to animals too.
3) Instead of lusting after neighbour's wife or goods, which makes neighbour's wife seem like neighbour's possession, there's a gender neutral statement about not copulating unchastely.
4) No prohibition on working on the Sabbath, so somewhat recognized the rights of atheists or apatheists.

Guess the heathen gods\esses were pretty good and humane lawmakers!