UTI help

Hales
this is my second UTI In less than a month, this time It hurts worse. I don't even have sex as often as I use too, what could be the cause of It?