The phrase was borrowed into English in the 1500s by people who made a formal study of logic. For them it meant a conclusion that does not follow from the statements that lead to it. But we now use non sequitur for any kind of statement that seems to come out of the blue