When leaving the world and re joining, the dragon's position and health is reset. You can briefly see the dragon in it's original position before teleporting to where it was spawned in. If the Ender dragon has died and you relog, you can constantly reset the death animation, making the dragon go up forever.
Linked issues
Attachments
Comments

Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-105080.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki