Since the index of refraction of water is higher than air, when the laser travels down the waterfall, it strikes the boundary at a large enough angle so that it experiences total internal reflection and the laser beam is trapped in the stream of water.