The way it was explained to me is that since "it" is a pronoun, when you're using it in its possessive form, it doesn't gain an apostrophe. Just like "your", "his" and "her" don't get apostrophes. But all contractions get apostrophes so it is (it's) gets one.