When you are in creative mode riding a horse, and you shoot a bow directly down, the arrow will bounce off the ground and get lodged in the horse. Then, when you get off the horse, the arrows will realize they need to do something and do damage to the horse.
Duplicate of MC-13727, please use the search function to see if your bug has already been submitted. Currently over 54% of tickets are being closed as duplicate.