She went into the room to change clothes.

Literal

She [topic-は] clothes [object-を] change [purpose-に] room [toward-へ] entered.

服を変えに — the purpose construction [verb-stem]+に with a motion verb. 変える means 'to change (something).'