As far as we know, Anne, or Nannie, was the neice of Margaret Stewart. If you look in the previous census, you will see that two young boys were also living with Dr. Marriott and his wife. When Margaret's brother's wife died, he left the children with her to raise.