She couldn't travel because of illness.

Literal

Illness [because-のために] she [topic-は] traveling [could-not-ことが出来なかった].

旅行することが出来なかった uses the formal potential with こと. のために with the full に particle. Another variation in the 'couldn't do X because of illness' series.