Dogs just know things. Don’t know how or why, but they do.
My two mini-dachshunds have 'built-in' clocks! When it's dinner time for them at 5 PM - they let me know - loud & clear!