different accounts log in as the same player.
If you start a world under account A, log out and change to account B, from the same console. You enter the world as account B but with the inventory. xp , and position of Account A.
If account A is logged in to a multiplayer local world. Account B can log in from a different console (Nintendo switch), and enter the same world as account B with account B inventory, xp and position, as normal.
I can only recreate the bug when entering a common world from different accounts, at different times.
This prevents different accounts from using a common world on that machine.