A line in need of a setup is by definition a punchline.
I think people have one-liner confused with one-sentencer. An effective punchline usually is one sentence. An effective one-liner need not be. Example:
"Television is a medium. This is because it is neither rare nor well done."
–attributed to Ernie Kovacs
I love you all. I love you more than life itself, but you’re all fucking mad."
(Ozzy Osbourne, “the Osbournes” television show, 2002)
I laughed my ass off when Ozzy came up with that one. I was waiting for him to wax affectionate - then he tells them they’re fucking crazy. Vintage Ozzy.
Exactly the reason I didn’t add any kind of lame SETUP. The one-line is much funnier when it is heard by itself. In fact, I tend to believe that’s how it was created and intended. Two guys walk off an elevator and you hear one of them say “Rectum? It nearly killed 'im,” and you’re left scratching your head the rest of the day, laughing to yourself. To pretend that there is a setup for it just kills the humor.
Another one attributed to Dorothy: You can lead a whore to culture, but you can’t make her think.
Not a one-liner, really, but a terrific pun. Parker supposedly fired it off without thinking when someone challenged her to make an interesting sentence using the word horticulture.