Joshua Koskoff, a lawyer for the families, argues there is an exception in the federal law that allows litigation against companies that know, or should know, that their weapons are likely to be used in a way that risks injury to others.
Why would anyone write this into the law? It's a weapon, that's its job.
FYI, text of the law can be found here