@kapunta It was "hip" in 19th century England, it wasn't all that well understood, at least not until the early 20th century.
It is neat that Arthur Conan Doyle, realizing its dangers, changed this in the story, with Watson helping to wean him off the drug.