Why do only certain people have mental disorders? Bad trauma or bad luck?

Almost every illness. We humans can get is based partly in genetics and partly in environment.