Xp bottles are generated after the creature's death animation instead of the moment of death
Xp bottles are generated at the end of the mob's death animation instead of the moment of mob's death in bedrock edition.
However, xp bottles will generated with the loot items at the moment of mob's death in java edition.