In psychological terms we call that tangentiality or a tangential affect. Where the subject starts on one topic, and then continually digresses to other loosely or unrelated topics. It’s a marker for mental illness.
Or we could just call it what it is, pulling it out of your ass.