Most OBGYNs use the urine sample to check for infections especially this close to the end of a pregnancy as a precaution for UTI, yeast infection, etc they can cause issues when in labor and need to be treated before the baby goes thru the birth canal otherwise they will be exposed to the infection and can get sick. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.