Seems like my Russians often do it when they are about to go pee or poo. In the male's case, it may also come before he extrudes his penis. However, sometimes they do it for no apparent reason while they just walk around (again, usually the male); maybe it just feels good?