Inconvenient facts.
Beshear indeed was up significantly early, but that was before the Right-wing TV machine got spooled up and took over Commonwealth (and surrounding state) airwaves. That big lead disappeared virtually immediately when the Right started running ads with seriousness. This one was a too-close-to-call race essentially the entire campaign season......and the few polls covering the election said just that.
Meanwhile, the national coverage last night made a big deal of Beshear's major inroads into predominantly Republican Northern Kentucky; the three counties (Boone, Campbell, and Kenton) across the river immediately south of Cincinnati. From what I can tell, I'd be willing to bet this was due almost solely to a local issue; the required multi-billion dollar replacement of the I-75 Brent Spence Bridge across the Ohio River.
How to pay for it has been a political football locally for several years, with tolls (which would be paid largely by daily drivers heading into Cincinnati from the area) being the most common flashpoint. Beshear ran on a no-tolls platform, while Bevin was more in favor. Without any additional persuasive reason to vote for Bevin (who wasn't well liked personally).....and aside his allegiance to Trump......it appears (for that reason) a boatload of Trump support in those most affected counties went for Beshear.
This morning, nobody knows what the crossover Beshear voters will do next year; though with both Trump and McConnell (who isn't very well liked in KY, either) on the ballot, I think most will figure the Republicans to run much stronger there next year.