Shinigami are a relatively new phenomenon in Japanese mythology. The story of the Shinigami is only two to three centuries old, initiated in either the 18th or 19th century.
They’re a result of the increased interactions between Eastern and Western cultures. Regarding the gods of death, this was in particular the idea of the Grim Reaper. So the Shinigami are the Japanese Grim Reaper.