Being in a relationship is a lot of hard work in order to keep your partner happy.
But, being married is a whole lot of work, too. Being married is something that is supposed to be "forever," and breaking up is costly, and also annoying and inconvenient for everyone. That's why when you love someone you do everything you can to keep them very happy.