In some cases that I've read about, unwed pregnancy was used as the proof the girl was guilty of sex, punishable by lashes and/or death. Nothing about it needing to be public. And many times this was the result of rapes that were not considered by the theocrats as rapes for illogical ridiculous reasons.
I'm really shitty at giving kudos and rep. That's because I would be inconsistent in remembering to do them, and also I don't really want it to show if any favouritism is happening. Even worse would be inconsistencies causing false favouritisms to show. So, fuck it. Just assume that I've given you some good rep and a number of kudos, and everyone should be happy...