The fan theory.
Can you believe this fun little logic for the afterlife? The theory suggests that ghosts are only able to walk through walls because that is simply what anyone expects to happen when they become a spirit. If you think about the rules of the supernatural here, it is all driven by expectation. Once a person transitions into a ghost, their preconceived notions shape their abilities, meaning wall-walking is just a self-fulfilling ghostly rule. It is a neat little psychological take on haunting mechanics!