Should marriage even be a thing? Why should it exist?

People can live with eachother without state mandated marriage licenses.

People can fuck eachother without marriage licenses.

Women can get pregnant and have kids without marriage licenses.

Why do we need marriage? It seems like a form of discrimination to treat married people differently from single people. I think we should abolish marriage, it's more of a religious thing anyway.