 The church teaches that marriage is a natural institution established by God in the Garden of Eden. You can read about that, of course, in Genesis 2 and into Genesis 3. So God established this. It predates all religion.