Egyptians believed that their pharaoh's took their bodies and belongings into the afterlife, which is why they were buried with them. It can be inferred that ancient Egyptians respected their pharaohs by abiding by this (leaving the riches with the body rather than taking the riches for themselves).