"Cardinals and Robins are very territorial birds. When birds see another of the same species in its breeding or feeding territory, it instinctively attacks the other bird. Your house or cars windows act as mirrors to the birds. When they are close enough to see their own reflection, they interpret this as an intruder and begin attacking or pecking at the window to chase the intruder away."