When a player punches a mob and then a bed or a respawn anchor explodes and kills that mob, the player is granted advancements related to that kill, but statistics that count how many times that player has killed that type of mob do not increment.
How to reproduce:
In any world, check your statistics to see how many times you have killed the ender dragon.
Make sure you don't have the Free the End advancement.
In the End, start killing the dragon until it has a small amount of health.
When it sits down on the portal, punch it and use a bed next to its head.
If it doesn't die, repeat.
If it dies, you will see that you got the advancement Free the End.
Check your mob statistics to see that the ender dragon kills are the same.
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MC-82298, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
๐ Bug Tracker Guidelines โ ๐ฌ Community Support โ ๐ง Mojang Support
๐ Project Summary โ โ๏ธ Feedback and Suggestions โ ๐ Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicate ofย MC-82298.