Definitely ADHD. (Can personally confirm.) It’s also common with my autistic friends. I don’t have an OCD contact to ask, but from what I’ve learned about the spectrum I would be surprised if they don’t.
My brain sometimes keeps internally repeating the last thing I said, or part of it, looped like a sample in a song. Nothing too extreme, but it’s there.