She describes her origin in her dialogue, she's a tsukumogami (think a mimic, but one that gained sentience after existing and being in contact with people for dozens or hundreds of years). There's more than that to her, but it's more fun to talk to her directly imo.