interjection
Colloquial confirmation or agreement, often used when the speaker realizes or acknowledges something. The なんです adds explanatory or emphatic nuance.
あ、そうなんです。私もそう思います。
Oh, yes, that's right. I think so too.
そうなんです。実は昨日引っ越したんです。
That's right. Actually, I moved yesterday.