text: It's caused by a bacteria getting into the urethra and making it's way up he urinary tract.  It's cause by many things including not cleaning properly.  It's can also be caused by sex, that's why it's always a good idea to urinate after sex.  You could have also taken an antibiotic that caused the UTI, that's a pretty common way.