媒 here means 'matchmaker / intermediary': the duck mediates between hunter and prey. The English word 'decoy' is itself a calque of Dutch 'de kooi' (the cage) and refers to the same hunting technique;
媒鸭 covers both live tame ducks and carved wooden or plastic models.