A mental problem causes a person to be more sad, lonely, or angry rather than being happy.
The boy had depression.