It's not entirely by choice. Getting married can have a significant impact on the benefits you are eligible to receive. Anecdotally, I knew a woman who lived with her boyfriend and children in section 8 housing through benefits she received for being low income. The boyfriend worked, but his income was not counted as household income because they weren't married. They eventually got married, and between his income and hers, their income was high enough to disqualify they for the section 8 benefits.
I don't know how common of a situation that is, but it is very possible to impact your public benefits with marriage.