Why does learning ethics demand something different from learning technical knowledge?
In computing, knowing usually leads straight to efficient action. In ethics, knowing the right answer in theory is easy; recognising the ethical problem and acting on it under real professional pressure is the hard part.
In technical exams it is usually not hard to identify the relationships 100 % correctly and to propose sensible solutions to hypothetical scenarios. Ethics works the same way on paper. Professional reality is different. There you must first notice the ethical entanglements and consequences, often hidden inside an ordinary task, and then act appropriately despite practical or professional constraints: deadlines, an employer's wishes, career risk.
Ethical understanding therefore needs an extra layer of engagement. You must keep questioning the effects of applying your technical knowledge, even when that is uncomfortable.
Go deeper:
Wikipedia: James Rest โ his four-component model: moral sensitivity (noticing), judgement, motivation and character (acting) are separate steps, and each can fail.