Perhaps Bobby just came up with his own name for the chicken, unaware that the real name was Agnes, which was also the name of the Sheriff's wife.
And Sid Saylor's uncanny sense of smell made it possible for him to detect when the Sheriff was approaching!

But he could not smell the Depu-ty.