A bacterial infection in the blood usually develops from a previous infection. The bacteria from that infection can pass into the bloodstream. Since your immune system is already weakened from the previous infection, your body is not able to fight off the bacterial infection in the blood.