So no one can accidentally walk into the room while wearing metal while it is on, to prevent injuries like the post we're commenting on, from happening.
No, that's wrong. The locks are because the magnet is always on but the scanner is not always staffed. The scanner door is never locked when the scanner is staffed or a patient is inside.