Cocks, also known as roosters, have a natural internal clock that helps them anticipate the rising of the sun. They are able to sense the changing light levels and will start to crow in the early morning hours, typically around dawn.
If you have a cock living on your property or nearby, and it crows consistently at the same time each morning, it is likely that you have unintentionally trained it to associate that time with your waking up. This could be due to your regular routine, such as waking up at the same time each day or performing certain tasks that the cock can hear, like turning on lights or making noise in the kitchen.
Cocks are also social animals and may crow to communicate with other roosters or hens in the area. If one cock starts to crow, it can trigger a chain reaction among other nearby roosters, resulting in a chorus of crowing.
In summary, a cock knows your wake up time due to its internal clock and potential association with your regular routine