The difficulty of proving rape is why rape conviction rates are low. Imprisonment for rape is shorter than imprisonment for murder because most people consider murder worse than rape.
> The difficulty of proving rape is why rape conviction rates are low.
Even despite the low conviction rate, rape convictions are reversed at a higher rate than other crimes, because it's so difficult in those cases to know the truth.
> Imprisonment for rape is shorter than imprisonment for murder because most people consider murder worse than rape.
Many countries historically imposed the death penalty for rape and a few still do. Typically the ones less concerned about proof beyond a reasonable doubt in general.
People viscerally hate rapists and, even more, pedophiles. Murder is nominally worse but not by much. The penalty for rape and second degree murder are typically about the same. In multiple US states the penalty for rape is higher.
The sentence isn't the longest of any crime for the same reason it isn't death (or, for the jurisdictions without the death penalty, the same as their penalty for murder).