It is so as not to give an incentive for a ruling government to send people to prison in order to help them retain power. Although I would tend to agree that murderers, rapists etc do not deserve the right to vote, withholding that right creates the temptation for a government to send opposition voters to prison on false charges.