In this psalm David is wrestling in fear of his enemies. Though he knows in his mind that the Lord is his defender, he does not know it in his heart. Otherwise, he would declare victory while still under assault and remain in peace.