Well, wouldn't you be a little frightened if you had a poo floating in your bath?!?!?!
Hannah did it for a while too. I think it's just a timing thing. (You know how they get into pooing patterns at certain times of the day?) So it might just take a few days before he changes his "timing" and then you'll be right! (Personally I hate it when Hannah's poo time is right before she goes to sleep. In a nice new dry nappy. But no.

)
Alternatively, you could encourage him to go before his bath?