Because he didn't learn that he could revive people until he was already brainwashed by Obito and his ideals.
After that manipulation, he wanted to start over, not bring back the dead but instead start a new system by causing world pain so that people could connect.