That's how it is..except of course for those who want the said punishment for themselves(self confession) as they believe thats the only way they are sure to receive God's forgiveness. But mind you Allah may very well forgive you even if you are to hide your sin & repent. But its about the level of ones fear of their Lord.