The authorities are not penalising the families. The prisoners are. By committing the crime they are implicitly accepting the possible repercussions of being caught.
If they do not also consider the effect on their families, they, and they alone, are responsible for the situation.