The reason for the ultrasound makes sence. They will be checking to see if he has hydronephrosis (Kidney pelvis enlargement). Often the cause of UTI's can caused by reflux of urine from bladder to kidney. The one way valve is allowing it back up. The MRi might be if they were looking for more "evil" things, be it prostrate issue or kidney.