Because neither of them can guess the other's score at first, they are not lower than 100.
Later, when Mary knew that both of them were less than 100, she knew each other's scores, so her score must be 100- 199. According to the last sentence, she knew it was 199.