While insomnia can be a symptom of mental illness, insomnia in and of itself is not a mental illness. Insomnia can also have physiological causes such as hypertension, thyroid disease, pain, and even lack of exercise.