Why do birds chase cats?

This usually only happens when the birds are protecting their nests.