They might have heard it at previous ceremonies, and formed a mental link between the sound of Canon in D, and the memories of the emotions which weddings bring. When they come to choose the songs for their own weddings, the Canon seems appropriate due to the memories and feelings that it awakes in them.