That's exactly what happened. Writers are taught to put the least important parts at the end, so that the editors know what to cut when trying to reach word count targets. When several standalone sentences are written (like here), editors are supposed to know that they can move that sentence to a more appropriate place, or cut out those that don't go well together. Think of it like a 'filler sentences' bank that the writer provides for the editor who will end up rewriting the end of the story.
This here is just an example of very shoddy editing.
This here is just an example of very shoddy editing.