Why do I bleed if I haven’t had sex in awhile ?

Emily

I’m 21 and When I go awhile without having sex the next time I do I’ll bleed ?? It’s getting really frustrating that this keeps happening just wondering does anyone know ways of preventing it is this normal ?? It puts me off wanting to do it