The purpose is to help, to prevent, to correct, to improve, rather than to punish. Criticism is not meant to punish, but rather to correct something that is preventing better results. The only goal is improvement.
The purpose of discipline is not to punish, but to correct.