As long as we keep sinning, we will not have inner peace. That's how the Lord has made us. He's letting us know that we cannot get along with sin and be happy, and that as long as we carry sins, we cannot get into heaven. We sin because we are self-centered. If we surrender ourselves to God, we become God-centered and our problem with sin will be no more. Not carrying any sin, our inner peace is then restored.