Turning off the water is not the cause of the pipes freezing. While if the water was on and people used it occasionally it may have not allowed the water to freeze since it is more difficult to freeze moving water, the real reason the water froze is the pipes were not adequately warmed.

