Marriage has been a civic institution arranging property and legal rights as long as it has been a religious institution.
The separate civic and religious functions were often intertwined in societies which did not separate Church and State, but there are clear and separate served by the now-separate civic and religious institutions sharing the same name.