'it' is a dummy 'it', an anticipatory 'it'. 'it' = if you don't win every time Thus: [ if you don't win every time ] doesn't matter. ~ [ your winning every time ] doesn't matter.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.