It's in a vacuum chamber. As the pressure decreases, the boiling point of the water decreases, so at a low enough pressure it will boil at room temperature but not at a uniform rate throughout. The water molecules that boil first will be given off as vapour and take some heat energy with them, lowering the temperature of the remaining water. This continues until the remaining water freezes.