It is an old military saying. One may learn from the experiences of another and thus avoid some personal failures. But, whether wisdom is gained through education or experience it was originally gained because someone made a mistake.
The US fire code is a good example of this. For many of these codes many people died before they were implemented.