2. Question: Why does the Beis Shmuel say that a kohen can live in the same house as his ex-wife who he found to be adulterous one day and divorced but can’t even live in the same courtyard as his ex-wife, without their children constantly with them, who was captured by non-Jews and he was forced to divorce?
A. The Shulchan Aruch (Even HaEzer 7:9) says that a wife of a kohen who became forbidden to him because she was captured, since the matter is really in question whether she was forced to have relations with one of her capturers he is permitted to live in the same courtyard as her as long as their children and household are always there to make sure they don’t do anything inappropriate.
Answer: The Beis Shmuel (16) says that since the husband is disgusted by his adulterous wife then we aren’t afraid he will go back to her but the wife of a kohen who was captured did nothing wrong, she just might have been forced to be with her captors which prohibits him to her because he has a special status of a kohen therefore we are worried that if they are alone together for a period of time they will be with each other because they still have feelings for each other and she is not disgusting in his eyes.