The sound you are hearing is likely caused by a phenomenon known as "water hammer." Water hammer occurs when water flowing through pipes is suddenly forced to change direction, creating a pressure wave that can cause pipes to vibrate and produce a loud knocking sound. This can happen when a valve is suddenly closed or a faucet is turned off quickly. It is a common issue in Plumbing systems and can be mitigated by installing water hammer arrestors or ensuring that water flow changes are gradual.
Related Q&A:
What is the marble dropping sound you hear in your walls or from the apartment above you this is the-Oh, that marble dropping sound could be a bunch of things! Maybe it's someone playing around with marbles and they accidentally dropped them. Or it could be some loose objects that are moving around and making that noise. It might even be something related to the building's structure, like a pipe or a piece of metal that's loose and causing that strange sound. Ugh, it's so annoying when you can't figure out exactly what it is! But don't worry too much about it. Sometimes these sounds are just one-time oddities and they don't mean anything serious.