Pets pick up on anxiety and changes in your routine. It could very well be that your dog was looking for comfort.
But, sometimes those little scamps want to take advantage of the situation to stake out territory not normally theirs, or return to behaviors they have been trained out of!