expression

Out of debt, out of danger

debt

suggests that

You are in danger when you are in debt, as the creditors have power on you until you repay them.

similar to

A man in debt is caught in a net.