Your dog is having an imbalanced urinary excretion due to health issues. In that case, seek a veterinary doctor to get more guidance in this regard. But if your pet is a baby puppy of just a few months then there is nothing to worry about. Just wait for 3-4 for your pet to grow properly to understand all the rules and regulations of your home.