If moisture was the cause of peeling paint, it's particularly important to protect your newly painted area from the same problem. Primer can help seal the surface to protect against moisture and allow the paint to properly stick.