Why do Roosters Crow in the Morning?

Roosters don’t only crow in the mornings. Roosters crow in order to attract the hens and also to warn the hens that there may be an intruder.