Because they cloned the data from one device to another
Both devices think they are the same when they are not
To do this you need a backdoor in that person’s computer (you have bigger problems if so) and it is not unnoticeable (messages disappearing)