If an effect instructs a player to lose the game, that player is immediately removed from the game. See rule 649. Conceding for more information about being removed from the game.
§ 195.1 Core Rules PDF (officieel)
§ 195 A player also wins the game if an effect instructs them to do so, or if they are the only player remaining in the game.