The affiliate module in Magento 2 is a network connecting your website with the others. You will put your product/service referral links on those websites and get traffic from them when someone clicks on the links to visit your store. Affiliate program is not mandatory, but an essential element contributing to a store's success as it helps acquire new customers at minimal cost.