Could he be sleep walking? So he "wakes" up but he's not really awake, and is disorientated, and doesn't realise that he's not outside and then poops? It's very peculiar that he's not "asking" to go out, and just goes there on the floor. Very peculiar.