Of course, you can have that without getting married. But you see, more than anything, marriage is really a cultural institution. It has a strong symbolic power. It's an excuse for a big party, a signaling of commitment, etc.
We humans do a lot of things based on tradition and culture. Marriage is one of those things.
Because come on, if we don't have culture, what do we have?