Another option is that they are the products of a dysfunctional medical system. In particular, a pretty common recurring feature is that the shooters turn out to have been on antidepressants which are known to cause aggression and/or suicidal tendencies.