Why do I bleed when peeing and on my period?

Get checked out. It's probably contaminant but in rare instances there is endometriosis in the bladder and you can get blood in your urine when menstruating. There are some other possibilities of connections between 2 areas. See a urologist. I'd start with a cath urine test while menstruating.