My dog Smokey does that all the time. Maggie only does it if she hears
me pick up my keys or put on my shoes.( both mean a trip outside)

It is bothersome sometimes, but if I conciously ignore them & think only
about what I am doing, it seems to help them & me.