To punish someone is to punish them for something that they have done. Sometimes the punishment is physical, but it can also be financial or emotional.
The teacher punished the students for being noisy.
The company is punishing its employees for being late.
The government is punishing its citizens for breaking the law.