So the female has no responsibility for her irresponsible behavior?
Git it.
If he hadn’t married her it would be different. Once he married her, her children were his. Societies have an interest in making it hard for a man ro leave a woman with children even if she is unfaithful. This particular aspect is the bedrock concept of marriage and why marriage exists.