A disavow file gives webmasters the ability to discount links. This is usually only used in extreme cases where links are seen to be toxic or highly irrelevant and you would wish not to be associated with them. This doesn’t prevent the link from existing, but does inform search engines to ignore them as part of your backlink profile.