This type of touch is simply because he loves being with you and it is a form of affection.
They feel happy in your presence and the warmth of you brings them comfort.
Most times, when your dog is touching you they are either trying to show you attention and affection, or they are desiring something for you.