The first marriage known to history was held at around 2350 B.C., and in history, and also in reality today at many places, marriage, was and is all about allegiance between 2 families, entirely decided by the patriarchs (or, matriarchs, mostly previously married into that family) of the patrilocal families. And modern humans (Homo sapiens) are living this earth for the past 200,000-300,000 years, we know the history till only around 3000 BCE. In that known history only, marriages were mostly originated from rape, coercion or allegiance, only a powerful few married by their own will. So, yes, this widespread behavior of married was created by society not before 10,000 years ago.