Saw this during a house viewing today. Does anyone know why this might be needed?

It was at a random bedroom on the second floor. The room required two different keys to enter. In what situation would this be necessary?

It was at a random bedroom on the second floor. The room required two different keys to enter. In what situation would this be necessary?