Depending on the year your house was built, the pipes in your ceiling or walls may be integrated with air containers. An air container is a shock buffer that consists of a couple of pipes that are filled with air. As the pipes behind your walls become older, the air may start to escape. This causes water to fill the air containers in your plumbing system. Once the pipes are filled with water, they can start to produce a rattling noise.