Some of the emails were altered by Russia for the purpose of spreading misinformation. Russia used Wikileaks to lend credibility to the conspiracy theories they were sowing in the run-up to the election.
NY Time has a great 3-part video series about Russia's history of spreading fake news. Each video is about 15 minutes but it's well worth the watch.