There are many that do originate from chemical imbalances or neurological variation. There are also a number which are caused by a triangle shaped relationship of thoughts-feeling-behavior.
What we believe leads to how we process events emotionally which then leads to how we behave in response. A great deal of psychology is based on interrupting that chain when it becomes maladaptive and introducing new beliefs and behaviors.