Friends that combine pleasure and utility are so few in a lifetime we established cultural norm to mark them with rings and loudly announce the pairing to the entirety of the town one resides, or smth.
I'd say marriage is a doggedly hopeful way to make someone please you, be useful, and act like they're friendly, under color of law, but it rarely captures the actual thing you imagine it's enshrining.