I will make an help meet for him. Thus a man shall leave his father and mother and shall be joined unto his wife. Already there God was intending marriage to serve a purpose, a purpose with respect to Himself - that earthly marriage be a picture of His covenant with His people. You see, marriage is not given first, or even primarily, for our own good and enjoyment. Certainly it is for our good and enjoyment as His children.
Marriage is a blessed state.
But it is not given first of all for that. But marriage is given to serve God's purpose. That purpose is to reflect God and His unbreakable relationship with His people. God's covenant with His people in Jesus Christ, then, is pictured as a holy marriage. We are married to Him by His grace.