The water pushes the shower curtain. Push is a force. The water basically thrusts the shower curtain and the curtain will then not stop immediately as it has a bit of braking distance. Then braking distance differs on the total force the water has on the curtain. Simple way: The curtain moves because the water acts as a push to propel the curtain forwards.