Jesus spoke these words so that scripture would be fulfilled (Psalm 69:21, Psalm 22:15). Even as he was suffering and dying, Jesus was fully aware of his purpose to complete the work of the Father who had sent him.