Such defects are the result of mutations in the genes encoding these enzymes. As the organism can still produce small amounts of the chemical, the mutation is not lethal.
These defects are a direct consequence of genetic changes affecting enzyme production. Notwithstanding the organism's ability to still produce small quantities of the substance, the mutation does not have a devastating impact.