Marriage wasn't invented for people to codify a loving relationship, it began as a system of sex slavery, the legal ownership of women. It wasn't so much that same sex marriage was illegal but that the institution until very recently was not designed with partnership in mind
literally why was same sex marriage illegal in the first place??