ref
late 19th century: from toxic + -in1.
From Latin toxicum, equivalent to toxi- + -in.
toxin (n.)
"organic poison," especially one produced by bacteria in an animal body, 1886, from toxic + -in (2).