The storyFrom never (adverb) + do (verb) + well (adverb). First attested in 1664.Etymology from Wiktionary, CC BY-SA 4.0.