UTIs can happen to dogs of any breed or age, but their likelihood increases as the dog gets older. Both males and females can get UTIs, but they are more common in female dogs. This is because they have a wider and shorter urethra, which makes it easier for troublesome bacteria to set in.