If the heatsink is electrically connected to ground (or any other potential except Vout), then the mounting kit is used to isolate the tab from the heatsink. Note that the bolt used to mount the LM317 to the heatsink must not short the two. Use the small Teflon shoulder washer supplied in the kit to prevent that... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.