Cats chatter at birds out of frustration, excitement, or instinct. It's a hunting behavior when they can't reach their prey.