Please remember that this is my own point of view, and even though am a madara fanboy this is not about fanboyism but seeing madara's actions from a different perspective, so here is my simple reason, the truth is that even though if madara didn't come to existence Kaguya had already dropped her way back onto the earth surface like some Nuke (Zetsu) so one way or another Kaguya will have still come back so if madara had not beat naruto and sasuke to a near death state, then they wouldn't have met the kage which will have meant no sage upgrade for both of them, (no RSM for naruto and Rinnegan for sasuke) and we all know that there was no possible way for naruto or sasuke to take on Kaguya with BSM or EMS so whether we like it or not Madara had an important role to play which was sending naruto and sasuke to a near death experience so as to gain upgrade, and please i am not trying to justify his action but then his whole action was decided by faith, so instead of seeing madara as the bad guy see him as the hero who got Naruto and Sasuke ready for their biggest nightmare..... #madaraisawesome