Why would skim coat discolor?
Moisture.  Given the sequence of events resulting in the appearance of the brown spots and an obvious source of moisture, from the piping, one can rule out "grease", "tar", "solvents", "oils", and etc.  Whatever caused the previous paint to "bubble and peel" is continuing to impact this area.