Some dogs lick because they have dental or other mouth pain.
Excessive licking can also be a sign of hunger it's called an appetitive behavior.
On the behavior side of things, excessive licking might signal anxiety or some type of conflict.
Obviously, a veterinary exam can be a good idea.