There are 2 causes to the behavior: 1) Sign of submission This comes from early development stage during the puppyhood when the do shows submission to mom by kicking her muzzle.
(Also why dogs try to lick face) 2) Grooming.
Again it's common for a submissive dog to groom a higher positioned member of the pack.