Madara and Obito have the knowledge of everything.
Everything Madara knows, Obito himself knows as well.
Obito was urging for the Ashura and Idara fight to happen all over again.
Nagato and Itachi were just pawns in developing the characters to a certain state, before the rest takes off.
If Sasuke was synced to Gedo mazou by Obito, Sasuke would be on his level.