Non sequitur

Non sequitur – noun – Literary device
 
A non sequitur is a conversational literary device, often used for comedic purposes. It is something said that, because of its apparent lack of meaning relative to what preceded it, seems absurd to the point of being humorous or confusing. Wikipedia