From [link|http://www.geocities.com/etymonline/h1etym.htm|Etymology Online]: Hat trick is originally from cricket, c.1877, "taking three wickets on three bowls," extended to other sports (esp. ice hockey).

Ok, I didn't know it before... but that's the beauty of the internet. Now all I have to figure out is what a wicket and a bowl is. :-)