There are a degree of randomness in the games so you are never guaranteed victory.
If your game is simulated again, you would probably win but that 1% of the time you would lose. unfortunately, this is that 1%. A bit unlucky but it happens. Even in real life.