well, i think it's because dog's naturally like to chase things! once they catch up to them--- they probably try to get inside the window or just bark!
it's funny huh? when you have a dog inside a car--all they do is bark and try to get out - yet when their not in the car, they bark and try to...