Well, sir, it would depend on a bunch of different things. One way that it happens oftentimes is that when someone is sent a malicious email, they click on it, and that reveals certain information on their computer to the person who is trying to hack. They are then able to take control of certain accounts or the computer in question.
On May 8th, 2023. See this statement in context.