The answer is, that there are many areas of federal law, and various state laws, which deal with marriage and family law, and which take into account one’s marital status.
That’s why the federal government is involved in marriage.
i forgot to get my federal marriage certificate
maybe that is what went wrong