Instead of only promising the future, Allah reminds His Prophet ﷺ of his own past. You were an orphan — He sheltered you. You did not yet know the way — He guided you. You had little — He gave you enough.
It is a beautiful way to comfort someone: look at what has already been done for you. The One who carried you then is the same One carrying you now.