Confusion, agitation, diarreah, delerium, overweight. Could be heat exhaustion...
I have had it (relatively mild case) and could see someone stripping and wandering into a pool. You don't care about someones shrine or temple at that point.
Also, the diarreah would not be controllable in that confused state. Neither, a calm attempt to find a toilet. More just like stumbling to water or shade. It's not easy to find shelter or shade around nana if you are in no condition to enter a restaurant or bar.
The only thing that makes me not sure, is that he is in the sun. The first thing most people want to do is get out if the sun at all cost.
So you pikes who have commented here make want to consider that next time you post.