The story
in 1942 derived from nicotinic + acid + vitamin, chosen to dissociate it from nicotine, to avoid the perception that vitamins or niacin-rich food contains nicotine, or that cigarettes contain vitamins.
Etymology from Wiktionary, CC BY-SA 4.0.