Cat confused by running water

Our cat can not figure out where the water comes from and tries to fight with it every time we turn it on. He does this for hours.