A purpose or beneficiary: 〜ために (do B in order to / for the sake of A).
けんこうの ために、まいあさ はしっています。
I run every morning for my health.
Noun + の + ために, or a volitional verb (dictionary form) + ために, states a goal or beneficiary. The subject of both clauses is usually the same and the action is intentional.