expression

It's a good job.

Theme: adversity Keyword: fate

means

Expresses relief that something fortunate happened, usually because it prevented a problem; chiefly British English.

also

It's a good job that; It is a good job.

Example

It's a good job we brought a torch, because the power has gone out.