She comes to live with them because she's under the impression (and has convinced Atticus) that Scout is in need of a more feminine influence. She intends to make a 'lady' out of Scout and to infuse her with an 'understanding' of the social order of things.