I believe it is the distension of the ureters with urine. In pregnancy, this can be caused by obstruction of the ureters by the growing uterus. This can cause stasis and create an environment conducive to bacterial growth.
Info from Cherry & Merkatz's Complication of Pregnancy, 5th Edition pg. 297