Every morning I walk through the park to exercise the dog.
Literal
Every-morning dog [possessive-の] exercise [purpose-に] park [through-を] walk.
犬の運動に marks the purpose — 'for the dog's exercise.' 公園を散歩する uses を to mark the route or space traversed — a distinct use of を for 'through/along/across' rather than a direct object.