I read in Actual & Factual Reader & I Share.

Photo by İsi Parente on Unsplash

They did the first extraction of Vitamin B3 from nicotine as nicotinic acid. The name Niacin avoided the idea that foods with nicotinic acid contain nicotine or that cigarettes contain vitamins.

Research says plants and animals manufacture Niacin from the amino acid tryptophan.