The main cause of this can be heavy vibration from water and air activity that is coming through the pipes. To reduce the noise significantly just make sure that your pipes are properly strapped to the walls or flooring.
the reason you have noisy pipes is probably because the pipes are metal or copper. most houses built with metal pipes do not have much insulation in the wall or around the pipes.