She was seen walking out of the room.

Literal

She [topic-は] walking room [object-を] going-out [object-を] was-seen.

見られた is the passive of 見る — 'was seen.' The embedded clause 歩いて部屋を出て行く describes what was observed. を marks the path traversed (部屋を出る = 'exit the room').