She missed school because of illness.

Literal

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

のために marks illness as the cause. 学校を休む means 'to be absent from school.' The に in のために is optional — both のため and のために are natural in this construction.