#1039 Hard dark

A guard falls asleep on duty. His commander finds him and shakes him awake. The commander thanks the guard and gives him a reward. Why?