Cockerels were often used as weather vanes due to a belief that the creature was feared by the Devil, and were placed at the highest point of a building.
eBay