My snake has done this to me as well. I freaked out a bit. Still hesitant to stick him in any sort of pool of water that he can't get out of easily.
EDIT: This was more of an afterthought, but do BP's know how to swim instinctively? Or do they need to learn like some humans?