 Joseph found out that Mary was going to have a baby, and he was not happy. He knew that the baby wasnt his, so he wanted to leave Mary. But he was a good man, and he didnt want to shame her. So he thought, I will just leave her quietly, without any argument. 