Originally, after the plot character learned that the reincarnation was going to kill him, he chose to die with the reincarnation.
When he woke up, he found that he had become Jiren.
But why is Mao in the Naruto world?
This novel and its characters are purely fictitious. Any similarity is purely coincidental and should not be imitated.