UTI AND IF TERRIFIED PLEASE HELP😫

I'm only 17 and I lost my virginty in March since then I have had sex 3 times. After the third I have been having light bleed when I pee and it burned so bad 😫. Then after some research I found out I had s UTI😱.After 3 days it went away mysteriously what does that mean??