The water path changed because of static electricity. When the student combed his hair, the comb became charged with static electricity. When he brought the comb near the faucet, the water, which is a conductor, was attracted to the charged comb. This caused the water to change its path and move towards the comb.