Obito stated Izanagi requires both Senju and Uchiha DNA.
Itachi said that many Uchiha used to spam Izanagi, so Izanami was created to make people realize what they did was wrong.
But, how did so many Uchiha members get hold of Senju DNA when it was clearly stated that Senju >> Uchiha?