State-declared marriage is an tax saving scheme, that the state does in expect for future tax payers. Not granting it to people who won't "produce" tax payers seems entirely reasonable to me.