She was absent from school due to illness.

Literal

She [topic-は] illness [because of-のため] school [object-を] was-absent.

病気のため ('because of illness') marks the cause. 学校を休む means 'to be absent from school' — 休む (to rest) with 学校を creates the set expression for school absence.