A UTI itself isn’t dangerous, and most of the time it can be resolved without treatment.
However, the main danger of a UTI is that the infection may spread from the bladder to the kidneys, which can be serious if not treated.