does a UTI cause this? (v embarrassing)

okay so i’m 16yrs old & i just woke up & i peed the bed.. i literally have only done this like 2 other times & i was incredibly young. but now i’m almost a senior in high school & i’m soooo embarrassed.

but when i got up to go pee it smelled/felt exactly like a UTI, so my question is does a UTI cause bed wetting or should i be concerned????