somehow; without realizing; unconsciously
Used after a volitional or interrogative word to indicate an action done without clear intention or awareness. Often appears in patterns like どこからともなく (from somewhere or other) or 見るともなく見る (to look without really looking).
Music could be heard from somewhere or other.
I was looking out the window without really paying attention.
From the particle と (quotative) + も (inclusive) + 無く (adverbial form of 無い, 'not exist'). Literally 'without even saying/being that', it developed into a set phrase meaning 'without clear intention or source'.