Only a psychiatrist could really say why a mental illness you developed actually developed and even then they are guessing.
I am sorry you are depressed have you a Doctor you can visit where you live may be able to help you, also its good to have a lot to do, work, sports, why do you not talk to anyone, maybe if you try make an effort tto make the first move they will talk back to you,do you go to school or college ?