Welcome to Healthcare Magic Forum,
Yes it can be due to uti. You need to get her urine tested before any further evaluation is done. If urine is normal, then you can think about working up further for any other causes of secondary enuresis
which your pediatrician
can explain in detail.
Hope your child gets well soon