It could have been a combination of factors. Maybe a series of failures in his life, a broken relationship, or a sense of hopelessness about his future.
Maybe it was overwhelming depression. Sometimes people just can't cope with the weight of their problems and see no way out.
Perhaps John was facing extreme inner conflicts and couldn't find any solution. Maybe he felt completely isolated and misunderstood by the world around him.