expression, godan verb (-ru, irregular)
have a reason; have an excuse
Used when there is a specific reason or justification for something, often implying that the reason is not obvious or needs to be explained.
彼が遅刻したのには、何か訳があるに違いない。
There must be some reason why he was late.
そんなことを言うからには、訳があるんだろう。
Since you say that, you must have a reason.