This is a common phrase, but it comes from people not emphasizing the importance of lessons learned from failure, so those lessons get lost over time and human nature brings similar situations back into the fold. If we can break that cycle and learn from history, we combine the advantages of learning through mistakes and not having the mistakes be our own.