A common trope in japanese youkai legends is the false sanctuary. The protagonist thinks they got away from the threat, but then the presumably safe place turned out to be a danger too. This relates to the philosophy of zanshin. The idea that one should always stay alert and aware at all times.