Isn't it possible that, as Inglethorp brought him through the hall, the doctor dropped something into the coffee in passing?"
It might be that the doctor dropped something in the coffee.
Verne's imagination was lit by this old lighthouse and it is understandable why.