She was absent due to illness.

Literal

Illness [because-のため] she [topic-は] was-absent.

欠席していた uses していた for the resultative state of being absent over a period. のため gives the reason concisely. A common explanation for someone's absence.