My understanding is that this is old, old law, going back to English Common Law if not to Roman law. Basically, any child born to a married woman is legally the child of the husband.
Even if she is the town whore?
Sounds fair to me.
What doe=s old English law have to say about an insulted husband killing his wife and paramour with say cruel and heinous acts?