This is more about children's rights than parents rights. Does the child deserve to lose out and live in absolute poverty because of what their parents did or didn't do?
No, but the choice for them to lose out wasn't made by the government it was made by their parents.
And I believe that children would probably miss out, in other ways, if the government made co-habiting equal to marriage, because then their parents (or more likely, one parent) would then choose to not live together at all. Is that scenario any more fair?