He couldn't go out because of illness.

Literal

Illness [because-のため] he [topic-は] couldn't-go-out.

外出できなかった — 外出する ('to go out') in its potential negative form. のため marks illness as the cause. The comma after のため is a stylistic choice that adds a slight pause.