Psalm 40

Psalm 40 celebrates deliverance and then moves toward lament. Quite remarkably, the final six verses are identical to Psalm 70. Why are those words repeated?