The dash helps to indicate that the two thoughts are intimately related, and it’s less stodgy than a semicolon, which would have performed the same function (and who talks in semicolons?).