Why would it be Rumpel’s goal to be in prison when the curse struck? What does he have to gain by being in prison?
I don’t think it was being in prison as much as the location of the prison. Wasn’t the prison in the old mines? Perhaps the fact it was a mine or just underground added some sort of protection from the curse.