Pasuk Yud Daled in Perek Kaf Aleph states :
וְכִֽי־יָזִ֥ד
“But if a man plots delibritaley”
Rashi asks:
Why is it written as delibritaley?
He answers by first giving examples of people not trying to kill someone, yet still trying to punish them in a way
A teacher disciplining his student
A father who strikes his son
An unintentional killer
A doctor who kills his patient (ie. via surgery)
By giving these examples, he is answering the question by saying that a man who DELIBERATELY kills someone, deserves to die, rather than someone with different intentions. It use this language to show what the law is ( that if you have the intention of killing someone, you deserve death because of your intent).