Bleeding while masturbating

I starting bleeding while masturbating but it didnt hurt...anyone have ideas why’d this happen