Why does a urinary tract infection cause blood in urine?

Inflammation. . Bacterial infections can cause inflammation/irritation of the lining of your urinary tract leading to traces of blood making its way in your urine. Also explains why sometimes with a bad cold we sometimes see streaks of blood in mucous and phlegm. Bacteria similarly cause irritation of the respiratory tract lining.