Maybe they're taking a shortcut to save kerosine? :)
Interesting to see though, as I would expect for flights to Cuba always to avoid US airspace.
Lines on maps are not accurate representations of the shortest distance between the points, because maps are 2d representations of a 3d globe. The shortest path is approximately along a "great circle"[1], which looks like the path in the first link.