Here an attempt is made to explain suffering: the outcaste of traditional Hinduism is held to deserve his fetched fate; it is a punishment for the wrongs he did in a previous life.
Failure is instructive. The person who really thinks learns quite as much from his failures as from his successes.