Under congress rule mughals were quite romanticized. I'm guessing it was for Muslim vote also hindu/muslim relations were not as tense as they are now.
For a long time it was as if indian history began with the mughals.
Indians did a rubbish job of documenting there own history. The people that invaded had more of a culture of writing diaries, memoirs etc.
I guess it's never really been a part of our history. Only thing indians seem to have been interested in documenting was their family tree/lineage.