The purpose of wearing a retainer after completing orthodontic treatment is to prevent orthodontic relapse, which is the natural tendency of teeth to shift back to their original positions. Retainers help hold the teeth in their new positions and allow the surrounding tissues to stabilize, ensuring that the smile remains aligned and beautiful.