It’s the same thing as not marrying someone you just met / don’t know well.
Co-founding a startup is in essence like getting married. In fact you’ll spend more time with your co-founder than your spouse / partner plus plenty disagreements as well.
This is not to say co-founding with a “stranger” never works - it’s like getting married at first sight (see Married At First Sight, it’s fascinating show).
It’s simply better if you know the person well before making such commitment.