Why Swaying Back and Forth Occurs in Dogs. Vestibular disease affects the nerves that send messages back and forth from the dog's eyes, inner ears, and body. In doing so, it alters the dog's ability to balance thus causing him to sway back and forth either while standing or walking.