All my dogs would dream, make odd yipping, barking noises, and their feet would move. I'm thinking maybe your dog might have had a nightmare. Perhaps it heard or smelled something from outside that you couldn't detect. Is you dog old enough to start having some cognitive issues?