In The Scarlet Letter, why does Hester choose to move back to a community that condemns her?
It's also possible that leaving would deny Hester the opportunity to be near Dimmesdale, whether for her own benefit (and she clearly cares for him, asking at the end of the book whether she and Dimmesdale will be together in the afterlife) or for Pearl.
Hester rightly recognizes that the pain of her sin will not go away. It will not help her to move somewhere else- the burden of her sin will still exist. However, if she stays and works in the community for forgivness, the burden of her sin may be lifted off her shoulders.