Why is nicotinic acid called this way?

In 1873 the Austrian chemist Hugo Weidel managed to synthetize it by oxidizing nicotine with nitric acid. This has been the only reason this substance was then called “Nicotinic” acid, even though it was not biochemically or toxicologically related to the well-known tobacco alkaloid.