Over time stains settle into a wall or ceiling. When that area is retextured the stains photograph through causing a yellowing or browning effect. The best way to prevent staining is to apply a stain blocker, primer, and sealer.