I noticed this phenomenon one day after finishing research (computational biology) at UCI, and I remember watching a video by Practical Engineering about water hammers.
I found this somewhere (forgot where though ¯\_(ツ)_/¯). It's pretty interesting.