Good question. Very observant.
In this case, however, "not guilty by reason of mental defect" is a defense term taken from a written penal code. It is a specific term unto itself and no article is necessary.
- For Teachers