My 8 year old son used to do this when he was little. We’d be hanging out on the train or something and he’d suddenly turn to be and be like “what’s 4096 times 2?”
For me though, I had (still have) a thing about rhythms in spoken language. The last thing that was said to me would echo in my head, repeating, until it revealed its rhythm, and then the rhythm would get stuck in my head, like a song, and play over and over, the words themselves drifting out disappearing…
It’s weird, but I like it.