“LICKING of human faces by dogs might be seen as a behavioral exaptation, which now aids in bonding and socialization but which has been hypothesized to have initially evolved in ancestral wolves as a submissive behavior that prompted dominant wolves to regurgitate food.”
https://evolution-outreach.springeropen.com/articles/10.1186/s12052-014-0012-5