For years, scientists were dumbfounded by the unusual changes in the brightness of Betelgeuse.