Doing your history homework the exciting way!
This is a stock episode plot of having one of your protagonists learn their history by actually going back in time and experiencing it. If available the characters will use magical or sci-fi methods to travel back in time. Other times it's All Just a Dream or a hallucination caused by a bump in the head. Bonus points if someone quotes the saying, "If [...] [tvtropes.org]