Blood in the urine, medically referred to as hematuria, can occur when a kidney stone lodges in the urinary tract and scratches the delicate lining of the kidneys, ureters, bladder, or urethra.