In fact you could say it is one of the two main jobs of governments.
Protect the community and enforce contracts.
It's a bad system. The government is doing their jobs. But in doing so, they are disincentivizing people from getting married and having children. Right now, the birth rate is 1.62 births per woman.
You think that is caused by having to get marriage license?
You think the government should not enforce legal contracts.
Ok, I don't know what to say to you because that is the most blatantly disconnected from reality statement I have heard in weeks.