Carroll (a mathematician) plays with puns, homophones, and literal interpretations of metaphors.
Wonderland is populated by characters that often parody Victorian social norms and explore the breakdown of logic. “Alice in Wonderland” — Meaning, Themes, and Symbols index of alice in wonderland