You might want to read up on parliamentary gov't mate. BoJo didn't win an election. A coalition of M.P.'s made him PM.
The UK system doesn't have Prime Minister elections. Elections elect MP's (Members of Parliament). Afterward various party leaders wheel and deal with each other until a majority coalition emerges, and a PM is "elected".