A mental health problem is a problem involving cognitive patterns (Either conscious or subconscious) and/or emotional regulation stress/challenge that presents significant distress for a person or to their social community.
The reasons could
Be Biological factors, such as genes or brain chemistry.
Life experiences, such as trauma or abuse.
Family history of mental health problems.
Your lifestyle, such as diet, physical activity, and substance use.