That's sad, really. I feel for the mother.
As a precaution, you're always on the bay to make sure the child doesn't inhale too much water after a swim. Dry drowning is unusual but it is also not unheard of. That is what the boy had - dry drowning.
Here's more on this story --
WIS News 10 - Columbia, South Carolina | Boy drowns in bed after swim in pool