Do you have visitors or a new piece of furniture bearing an unfamiliar scent? This could be the reason the dog is doing it to mark territory.