neuter possessive pronoun; the modern word begins to appear in writing at the end of 16c., from it + genitive/possessive ending 's (q.v.), and "at first commonly written it's, a spelling retained by some to the beginning of the 19c." [OED]. The apostrophe came to be omitted, perhaps because it's already was established as a contraction of it is, or by general habit of omitting apostrophes in personal pronouns (hers, yours, theirs, etc.).
The neuter genitive pronoun in Middle English was his, but the clash between grammatical gender and sexual gender, or else the application of the word to both human and non-human subjects, evidently made users uncomfortable. Restriction of his to the masculine and avoidance of it as a neuter pronoun is evidenced in Middle English, and of it and thereof (as in KJV) were used for the neuter possessive. Also, from c.1300, simple it was used as a neuter possessive pronoun. But in literary use, his as a neuter pronoun continued into the 17c.