@deshipu It's not simple, though; 200 years or more ago the spellings of those two words were generally the other way round - though spelling was less homogeneous then anyway.
It's understandable that people think “it's” is possessive given the use of apostrophe “s” on nouns for that though “his” and “hers” ought to be a clue.
“One's” is just evil.