You can have kids with a partner, but really no reason to formalize it with “marriage”. I guess there are tax reasons though that make it more logical though.
Like it or not, the government unfairly taxes single people.