Most birds have large eyes and little to no eye muscles, so to look in different directions, they have to move their whole head. It results in a lot of head bobbing.