Answer:
I think,
One purpose of the Inferno is social commentary. Dante places a few popes in Hell for their excesses and corruption. In Dante's Hell, the punishment is usually tied to whatever crime the person committed on Earth. Some crimes are treated more harshly than others, with the harshest crime being betrayal.
hope it helps.