This only happens in Survival mode. There are leads attached to every mob, even hostile mobs, when you enter a survival world.
Linked issues
Attachments
Comments

Does this still affect the latest version?
This ticket has been resolved as 'Cannot Reproduce' as it has no response was received recently.
I also attached two pictures of the bug