Maybe the dog is too tired to fall asleep. This is the dog tired to make this idiom. Now a lot of people use the word to describe themselves. After worked for a long time, the body feel very tired. Just like a tired dog. Then they will say “我累成狗了wǒlèichénɡɡǒule ”...