Whether every punishment is inflicted for a sin?

Objections

Objection 1 : It would seem that not every punishment is inflicted for a sin. For it is written (Jn. 9:3,2) about the man born blind: "Neither hath this man sinned, nor his parents . . . that he should be born blind." In like manner we see that many children, those also who have been baptized, suffer grievous punishments, fevers, for instance, diabolical possession, and so forth, and yet there is no sin in them after they have been baptized. Moreover before they are baptized, there is no more sin in them than in the other children who do not suffer such things. Therefore not every punishment is inflicted for a sin.
Objection 2 : Further, that sinners should thrive and that the innocent should be punished seem to come under the same head. Now each of these is frequently observed in human affairs, for it is written about the wicked (Ps. 72:5): "They are not in the labor of men: neither shall they be scourged like other men"; and (Job 21:7): "[Why then do] the wicked live, are [they] advanced, and strengthened with riches" (?)[*The words in brackets show the readings of the Vulgate]; and (Hab. 1:13): "Why lookest Thou upon the contemptuous [Vulg.: 'them that do unjust things'], and holdest Thy peace, when the wicked man oppresseth [Vulg.: 'devoureth'], the man that is more just than himself?" Therefore not every punishment is inflicted for a sin.
Objection 3 : Further, it is written of Christ (1 Pt. 2:22) that "He did no sin, nor was guile found in His mouth." And yet it is said (1 Pt. 2:21) that "He suffered for us." Therefore punishment is not always inflicted by God for sin.