Quite simply, Mary's life would have been long and hard. Shunned by family and community, no where to go, no place to stay, no chance of a future husband. Joseph shows incredible character by considering Mary's welfare (as best he could anyway) in his decision to divorce her leniently. Even though he assumes she was unfaithful, he tries to give her the best possible outcome.