Mandela's many years in prison were the result of his leadership of a "terrorist" organization that killed thousands, mostly fellow blacks, frequently in horrific ways. You're right that this was not on the scale of Genghis Khan's crimes. Yasser Arafat is a better comparison.
https://www.thenewamerican.com/world-news/africa/item/17106-...