In traditional philosophy and logic, a non sequitur is classified as a logical fallacy because it involves flawed reasoning. This fallacy occurs when it is readily apparent that there’s no connection between a given premise and the conclusion drawn.
Today, the term non sequitur is also used to describe remarks that have no relation to what was previously said and remarks that come out of the blue, indicating that the speaker was not paying attention.