どういう訳だ

what's the reason?

→ どういう
phrase Rare #34,663
what's the reason? Often used to express surprise or ask how something came about; depending on context, it can also mean “how come?”
JA: こんな時間に、どういう訳だ?
EN: What's the reason for this at such a late hour?

いつも学校に遅れるのはどういう訳だ。

Why are you always late for school?

どういう訳だね?

What do you mean by that?

— イル・ポスティーノ (1994)

どういう訳だ

What the hell does that mean?

— High and Low (1963)