Question: is webcam an output device?
Answer: From inside the webcam, its signal is indeed an “output”, but from inside the computer it's connected to, that same signal is an “input”. In a broader sense, the webcam itself is an “input” device because the signal it provides is not directly usable by a human (as compared to a video screen or a loudspeaker, say).