Its not a crime its a true accident.
But it might be if you do it on purpose in front of minors—for a reaction or for sexual gratification. If you get sexual gratification for peeing on yourself and letting others see it in public – and seek out places to do this such as parks, shopping malls, or church—you have a sure case of Urolagnia. You may find that you only like talking about it even if it didn’t really happen. Its nt exactly exhibitionalism but you still might be detained if done in front of minors
If you like pooping on yourself for reaction you may have a really bad case of coprophillia Peeing on yourself may get a humorous reaction but crapping on yourself will be really unpleasant for others.
Why not just carry around an open bag of diapers or incontinent undergarments and “accidentally” let people see—put an open diaper bag next to you in church so that the family behind you can see it when everyone stands up.