The energy in flowing water has to go somewhere, and when a valve is shut off, the pipes can flex and ... also puts strain on rubber hoses and soldered copper pipe fittings.