The storyBy surface analysis, had + better. See better (adverb).Etymology from Wiktionary, CC BY-SA 4.0.