When a villager becomes a zombie and you do the magic trick to let him become human again (the weakness potion + the golden apple), some times the villager apparently change his profession. (example: I spawned a blacksmith villager, when he died he bacame a blacksmith villager zombie, but when i used the trick to make him human he changed his profession and became a butcher)
Linked issues
Comments

Duplicate of MC-11883 – If you searched the tracker before creating this report, and were unable to find the indicated ticket, please comment with the keywords you searched for so that the original report can be improved.