Do you really think Jesus was confused when He quoted Psalm 22?
I think He likely was for a while just PRIOR to quoting it, and then He quoted it to not only fulfil prophesy, but to also show hope to the people listening to Him. I think it is more than likely, just like us in OUR sins (which He BECAME), that He found it much more difficult to completely focus upon God.