Not the point. Even if he never trained for that specific instance before, he was ready for failure.
When things went wrong, he didn't lose his cool or panic. He was ready for things to go wrong even if he wasn't expecting it.
By failing all of the time during training, he conditioned himself to not be upset about failure.