My doctor said there was blood in urine. My period finished last week, but I was ovulating today. What could cause this?

Bladder infection. If your doctor says you have blood in the urine, you have blood in the urine, most likely cause cystitis, most likely will repeat after a course of antibiotics , if still persist will send you to a urologist , to make sure nothing serious, don't worry.