LSD WASN’T INVENTED YET WHEN THE BOOKS WERE WRITTEN
Opium sure had been, though. :p
Dude wrote Alice in Wonderland because he was pissed about irrational mathematics. It was an example of a world where the math he didn’t like actually worked. It’s nerd rage disguised as a children’s book. Not drugs.