Peter asks this question to emphasize that there is nothing praiseworthy about suffering for doing something wrong. Alternate translation: "For there is no credit ... while being punished." (See: [[rc://en/ta/man/translate/figs-rquestion]])
This can be stated in active form. Alternate translation: "you suffer while someone punishes you" (See: [[rc://en/ta/man/translate/figs-activepassive]])