Both laws make sense if you consider that the motive might be to keep the state stable at the expense of individuals. Keep people from criticizing court decisions so that it doesn't cause civil unrest. Raise the costs of fathers finding out paternity so that fewer women and children are supported by the state.
> motive might be to keep the state stable at the expense of individuals
I would argue this is exactly what a government shouldn't be doing. They can continue doing so until enough people get fed up with it and cause a civil unrest. Not the same reasons but things like Brexit and the France protests are all caused because of the people getting fed up of the government.