An expression meaning 'I see' or 'So that's it', used when you understand an explanation or the reason for something.
A: 昨日は寝不足で早く帰ったんだ。 B: そういうことか、心配してたよ。
A: I went home early yesterday because I was sleep-deprived. B: I see — that's why. I was worried.
説明を聞いて、ようやく『そういうことか』と納得した。
After hearing the explanation, I finally thought, 'I see.'
彼が黙っていた理由が今わかった。そういうことか。
Now I understand why he stayed silent. So that's it.
そういうことか、と言って彼女はやっと笑った。
She said, 'So that's it,' and finally smiled.