Dictionary / Vocabulary / どういう訳か
どういうわけか
somehow; for some reason or other
Also written どう言う訳か、どう言うわけか
君がいつも遅刻するのはどういう訳かね?
Why is it that you are always late?