I'd feel a little more comfortable with this if the alleged perv was known to have a record as a sex offender -- and maybe he does. But as it is, everything seems to rest on the carpenter's word. Sometimes the 'hero' at a fire turns out to be the arsonist.
Let's look at the timeline - enough time elapses for one guy to go upstairs complaining, and the carpenter to go back down there and find him - with 'matters still in hand', so to speak.
Unless he has a serious prostate problem - he ought to have been done with business by then, one would think.
I'd guess that things are as they appear - a perv hanging around the bathroom looking for thrills. Besides, the cops did arrest the guy - I would hope that they did little investigation and assessment to ensure that they weren't compounding a miscarriage of justice.
And the boy's word, too, don't forget.