Here's why:
* It names a thing: Punishment is a concept, a consequence for wrongdoing.
* It can be the subject of a sentence: "Punishment can be a deterrent."
* It can be the object of a verb: "The judge imposed a punishment."
Let me know if you have any other words you'd like to identify the part of speech for!