Punitive detention is used to punish a person for an offence they committed after being found guilty in court and receiving a judgment.