Wedding celebrations were major social events in Jewish communities. The friend of the bridegroom represents someone associated with and supportive of the bridegroom rather than a rival for the bride.
Johns analogy makes the relationship clear: the bride belongs to the bridegroom. Johns joy comes from hearing the bridegrooms voice and seeing the bridegroom take his rightful place.