There is a difference between the institution of marriage, which is something created by God and natural to humans, and actual marriages. The former is something good we aspire to. Actual marriages that happen between people may or may not be good depending on various factors.