I came to help.

Literal

I [topic-は] help [purpose-ために] came.

A straightforward purpose clause: 手伝う ('to help') + ために + 来た ('came'). ために marks purpose — 'in order to help.'