Dolphins originally leap out of the water to avoid predators like sharks. Dolphins also leap out of the water for navigation and to see where they are above the water. They also jump to get air since they are only mammals. Also for the entertainment of the public and also for occasional reasons... Hope I helped ^-^
If you need to know anything else about dolphins make sure to message me :P