Purification of PCR products is generally not necessary. It is advantageous to gel purify the target DNA fragment if the PCR product is contaminated by either non-specific amplification products, primer-dimers or large quantities of unused PCR primers.
Purification of DNA from a PCR reaction is typically necessary for downstream use, and facilitates the removal of enzymes, nucleotides, primers and buffer components.