The player automatically unmounts the horse when entering water 3 blocks deep or more. if you swim back up, the horse just stays in the one spot floating in the water...
I realise its probably intentional but it can be an absolute pain in many circumstances.
Duplicate of MC-13645, please use the search function to see if your bug has already been submitted. Currently over 58% of tickets are being closed as duplicate.