This answer focuses on the rationales behind the holocaust denial law in Germany ([Section 130 (3) of the German criminal court][1]). I assume that the reasoning in other jurisdictions was similar. But I would like to invite other users to post answers which focus on other countries.
_____________________________

The German holocaust denial law was made in 1994 after the Bundesverfasungsgericht (German constitutional court) ruled in [BVerfGE 90, 241][2] (German source) that banning holocaust denial is constitutional. The reasoning was that the fact that the Holocaust happened is an undeniable historical truth, and any attempt to claim the opposite can only serve the purpose to insult holocaust victims and justify violence against those minorities who were the victims of the holocaust. They judged that protecting the dignity and safety of holocaust victims and their descendants is more important than protecting the rights of the holocaust deniers.

Regarding the "freedom of speech" argument: The above mentioned ruling also covered that. The usual German translation of "freedom of speech" is *"Meinungsfreiheit"* which literally means "freedom of opinion". The constitutional court reasoned that whether or not the Holocaust happened is a fact and not an opinion. According to the constitutional court, The German definition of freedom of speech only covers statements which can not be proved or disproved. Therefor, denying the holocaust is not speech which is protected by [article 5 of the German basic law][3].


  [1]: https://www.gesetze-im-internet.de/englisch_stgb/englisch_stgb.html#p1246
  [2]: http://www.servat.unibe.ch/dfr/bv090241.html
  [3]: https://www.gesetze-im-internet.de/englisch_gg/englisch_gg.html#p0041