By sitting on people, dogs often feel higher and more in control.
If you notice your dog barking or growling at other pets while sitting on your lap, it may be a sign that your dog is feeling the need to assert his dominance.
However, for most dogs, it's a once-in-a-while occurrence, so there's no need to be worried.