As a child we go to school and we are taught math, English, history and even how to be social. Sometimes we get the answer right away and sometimes we make a mistake and get the wrong answer. The teacher goes over what we got wrong, so we don't make the same mistake again.
As we get older, we learn from life lessons.
Whether it be from an experience, a book or something we see. But that's not the only way we learn. By making mistakes we learn what was right and what was wrong, and we grow from it. What we have to understand is that making mistakes is part of the process.
Mistakes are part of growth. Accept them, learn from them, and move on.