The relationship is 'object : characteristic sound it makes'. A door makes a bang sound when closed forcefully. Similarly, rain makes a patter sound when falling. This is an onomatopoeic relationship - the second word is the sound associated with the first.