Hematuria occurs when your kidneys or other components of your urinary tract leak blood into your urine. A variety of issues can cause this leakage, including infections of the urinary tract. This happens mostly when bacteria enter your body via the urethra and multiply in your bladder.