You haven’t told his age , but I suppose that he is small ( around 2 years). So child may have incontinence due to worm infestation , poor sphincter control, strict toilet training , attention seeking ,poor dietary routines.
Next Steps
Stool routine , a local examination of the anus , deworming could help . Please consult me on a video call