The table of contents shows a summary of the page by listing the section headlines in a neat little box usually at the top right corner of the content. This allows users to have a quick look at the page structure and quickly jump to the part of the page they want.
Since Release 2008-05-05, tpl_toc function can be used to show TOC separately from the content.