1. Your platlets are very low and, as a result, there is bleeding from your blood vessels into your bladder or other areas along your urinary tract. If this is the case, a platlet transfusion might be needed.
2. You have a urinary tract infection.
It could of course be another cause. I would see your doctor ASAP.