He does that sometime before we go on a walk, when I'm not fast enough for him, he can sometimes get impatient.
Sometimes he does that also for fun, he mostly spins when he is excited to play or when running/playing with other dogs.
A little old video, he was 10 month old when I recorded it (he is almost 1 year and 4 month old at the upload date of this video)