Sanding creates a rough surface, allowing the primer and paint to adhere better, ensuring a smooth and long-lasting finish.