This expression comes from the classic story "Alice's Adventure's in Wonderland."