"Marriage" can be defined however you choose. We hear phrases like "He's married to his job" and things like that all the time. Obviously a man can't be legally hitched to his job but the point of using the word "married" makes the intent of the comment known.
It's easy to get married. What you do with it from there is what's difficult.