Not necessarily the same writer, most likely not in fact. Stories are written and then transmitted, usually electronically to the folks who arrange the paper, or the web page. The author doesn't get to write the headline. Even book authors sometimes have to "compromise" with the marketing people, on a title for their works.
If the headline writer didn’t read the story, woe on shim.