Honestly, I primarily joined Twitter to win a video game screenshot contest. (Full disclosure: I did not win.) That probably says something about my priorities.
"Smart as a whip" didn't start as a compliment to your brains. A whip isn't clever. It stings.
That's the oldest job "smart" had. As a noun it meant a sharp physical pain by the late 1100s, and we still say a cut or an insult "smarts."
The Oxford English Dictionary's earliest example of the simile is from an Ohio paper, the Supporter & Scioto Gazette, in 1821: "his daughters are as lively and as smart as a whip."
Lively. Quick. Brisk. Not book-smart.
Why a whip? Nobody wrote that down. The likely picture is the crack: fast, sharp, and it stings. "Smart" meaning clever is old too, from the 1620s, so the pun may have been baked in early.
Short version: it began as fast, not brainy.