I've never seen any real evidence they do that at all.
In fact, it seems more logical their crowing would ATTRACT more predators
I think the idea of a rooster actually "protecting" a flock is more a myth than a reality
Other than being an extra set of eyes to spot trouble, roosters are NOT "protection"
They are just slightly larger chickens, and still no match for most predators