This is usually a matter of age and condition. If the pipes in your home are older than 50 years or so, you should be checking them regularly for signs of rust or corrosion. Corroded water lines need to be replaced right away.