Learning about the history of codes and how they evolved over time can help children understand their importance and applications. It also teaches them how these codes can be used and misused, providing a broader understanding of the subject.