Failure is the breeding ground for success - it humbles us. Without it, pride rules and destroys our lives.
It does not just have a humbling effect. Failure teaches, also. By knowing and analyzing what went wrong, one is better prepared to do what is right, and to know why it is right.