I keep peeing myself in public

Like the title says. I’m 17 and this a relatively recent problem (like past 3 months it’s gotten worse) if that helps. I genuinely don’t know why, I don’t have any known medical conditions but when I have to pee out in public it’s impossible to control myself. I usually barely make it to the bathroom, if that, but today I didn’t even make it home.

I’m just genuinely curious, should I follow up with a doctor? How do I start?