What does the word “glad tidings” accomplish when paired with painful punishment?

Literal and Figurative Usage: Metonymy and Types of Metaphor