Most milder mental disorders are probably like this; it doesn't make any sense from the evolutionary point of view that a significant proportion of the population would have largely genetic trait that is only harmful in all situations. It's just that traits like ADHD and high levels of anxiety probably were helpful - or at least not harmful - in our evolutionary context, but are not anymore.