What causes a UTI or Yeast Infection?

what causes a UTI???

what causes a yeast infection??

how do you get them…how do you prevent them
i dont have one.i was just wondering because my aunt gets them often. and it sounds quite painful