lol, my dog did that sometimes too. She has never neen in a shelter. She’s goofy sometimes. I just told her “that’s enough”. I supect that she is fantasizing about food or is licking the scent off whatever it is.
She left plenty of wet spots around and it was poretty funny.
Do you have kids around? My dog did it where kids had been.