Sounds like your dog doesn’t like to go out in the rain (who does?). If this happens even when it’s not raining, you may want to consider re-housebreaking your dog. This involves not allowing free access to the house when you’re not around, and taking her outside frequently. I use a product called “Zero Odor” https://www.homevet.com/supplements-i-use?page=shop.product_details&flypage=flypage.tpl&category_id=11&product_id=165 for cleaning up pet accidents, The best way to deter her is to keep her restricted, and off the rugs when you’re not around to take her out. You might also want to read my house training handout.