A lot of people in the 1800's knew mercury was bad stuff:

1856: American Society of Dental Surgeons, because of its stance against dental amalgam, is disbanded in 1856 due to loss of membership.

Maybe they were trying to kill Lincoln or make him crazy like the rest of us. Bad things tend to happen to good presidents.