Probably because they're either tired or bored, or both! Try giving your dog some toys to entertain himself with.
My dog is 9 years old and he started to sleep pretty much all day. I figured that he was bored with his all toys since they were all chewed up, so I brought him some new ones. Now he happily spends a good amount of time chewing and playing and only sleeps during the afternoon and after dinner.