When you add or remove a saddle in the horse or donkey's inventory, it shifts your view up or down. When you are looking straight down and add the saddle to the horse/donkey's inventory your view attempts to go "down" and basically makes you look upside down.
Duplicate of MC-16180, please use the search function to see if your bug has already been submitted. Currently over 55% of tickets are being closed as duplicate.