Body telling time

I was watching a video by ASAP science in which they said that the body is capable of telling time. We don't need alarm clocks, we can wake up on our own, due to some fluids in our body. How exactly does this work?