It provides a valuable measurement
Failure is actually just a measuring stick for how far you’ve come, and how far you still have left to go. Of course, the measuring stick will always be expanding since, once you reach your goal, you’ll create new goals. But, still, for now, failure was really just an opportunity to get a good, clear view of what work you still need to put in. It was a skill level assessment, that’s all.