I think the main purpose of punishment is to teach people a lesson. When someone does something wrong, punishment helps them realize their mistake. It makes them think about their actions and hopefully, they won't do the same thing again. This way, it encourages people to behave better in the future.